Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MindPatch authored May 8, 2023
1 parent 74024d9 commit 8c6938b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

name: Release

on:
push:
tags:
- v[0-9]+.*

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
env:
# (required)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Set the release name to the version from Cargo.toml
name: v${{ env.CARGO_PKG_VERSION }}

upload-assets:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
lua:
- lua54
- lua53
- lua52
- lua51
- luajit

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- run: rustup target add x86_64-unknown-linux-musl
- run: rustup target add x86_64-pc-windows-gnu
- uses: actions-rs/cargo@v1
with:
command: build --release --features $lua,vendored
- uses: actions/upload-artifact@v2
with:
name: lotus-$lua
path: target/release/lotus

0 comments on commit 8c6938b

Please # to comment.