From 1a6eaf79d33425231e9fc9332e5af030dfb29765 Mon Sep 17 00:00:00 2001 From: Ry Date: Mon, 10 Jun 2024 21:59:55 -0700 Subject: [PATCH] Create unstable releases using a single action --- .github/workflows/fox32asm-unstable-linux.yml | 57 +++++++++++++++++++ README.md | 4 +- 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/fox32asm-unstable-linux.yml diff --git a/.github/workflows/fox32asm-unstable-linux.yml b/.github/workflows/fox32asm-unstable-linux.yml new file mode 100644 index 0000000..f6227e4 --- /dev/null +++ b/.github/workflows/fox32asm-unstable-linux.yml @@ -0,0 +1,57 @@ +on: + workflow_dispatch: + push: + branches: + - main + +name: fox32asm Unstable + +jobs: + fox32asm-unstable: + strategy: + matrix: + include: + - name: Windows x86_64 + runner-os: windows-latest + artifact-name: fox32asm-windows-x86_64 + + - name: Linux x86_64 + runner-os: ubuntu-latest + artifact-name: fox32asm-linux-x86_64 + + name: Build - ${{ matrix.name }} + runs-on: ${{ matrix.runner-os }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Install ZIP + if: matrix.runner-os == 'ubuntu-latest' + run: sudo apt-get install zip -y + + - name: Install Just + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: just + + - name: Install Lune + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: lune + + - name: Build release + run: just build-release + + - name: Export package + shell: bash + id: export + run: echo "zip=$(echo ./target/release/fox32asm-*.zip)" >> "$GITHUB_OUTPUT" + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.artifact-name }} + path: "${{ steps.export.outputs.zip }}" diff --git a/README.md b/README.md index 6079371..1430cee 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ ## Getting Started -Downloads are available on the [Releases page](https://github.com/fox32-arch/fox32asm/releases). +Stable releases are available on the [Releases page](https://github.com/fox32-arch/fox32asm/releases). + +Prebuilt binaries of the latest commit are also available on the [GitHub Actions page](https://github.com/fox32-arch/fox32asm/actions). ### Usage