Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTeaMC committed Aug 25, 2024
1 parent 9f5e5cd commit 33444a5
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@ on:

jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest] # Add macOS runner
os: [ubuntu-latest, macos-latest]
target: [x86_64-unknown-linux-musl, x86_64-pc-windows-gnu, x86_64-apple-darwin]
runs-on: ${{ matrix.os }} # Run on both Ubuntu and macOS
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install Rust
run: rustup update stable
run: rustup target add ${{ matrix.target }}

- name: Compile
id: compile
uses: rust-build/rust-build.action@v1.4.5
with:
RUSTTARGET: ${{ matrix.target }}
UPLOAD_MODE: none
run: cargo build --release --target ${{ matrix.target }}

- name: Upload artifact
if: success()
uses: actions/upload-artifact@v3
with:
name: Binary
name: Binary-${{ matrix.target }}
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}
target/${{ matrix.target }}/release/

0 comments on commit 33444a5

Please sign in to comment.