Skip to content

Commit

Permalink
Create unstable releases using a single action
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed Jun 11, 2024
1 parent a022d3b commit 1a6eaf7
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .github/workflows/fox32asm-unstable-linux.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1a6eaf7

Please sign in to comment.