Skip to content

Commit

Permalink
chore: test macos as os for linux arm
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Mar 6, 2024
1 parent 309d5d2 commit 2ce5fe4
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,44 @@ on:
push:

jobs:
publish-linux:
runs-on: macos-14
publish-linux-x86:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@1.69
with:
targets: "aarch64-unknown-linux-musl, x86_64-unknown-linux-musl"
uses: dtolnay/rust-toolchain@stable

- name: Build amd64
run: cargo build --release --target=x86_64-unknown-linux-musl
run: cargo build --release

- name: Prepare amd64 binary
run: |
mv target/release/discrakt target/release/discrakt_amd64
chmod +x target/release/discrakt_amd64
- name: Upload binaries
if: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} target/release/discrakt_arm64
gh release upload ${{ github.ref_name }} target/release/discrakt_amd64
publish-linux-arm:
runs-on: macos-14

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-unknown-linux-musl"

- name: Build arm64
run: cargo build --release --target=aarch64-unknown-linux-musl

Expand All @@ -50,7 +68,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@1.69
uses: dtolnay/rust-toolchain@stable

- name: Build win64
run: cargo build --release
Expand Down Expand Up @@ -83,7 +101,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@1.69
uses: dtolnay/rust-toolchain@stable
with:
targets: "aarch64-apple-darwin, x86_64-apple-darwin"

Expand Down

0 comments on commit 2ce5fe4

Please sign in to comment.