Skip to content

Commit

Permalink
fix: attempt at linux release fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Mar 5, 2024
1 parent 3da5b92 commit 309d5d2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@ name: Release
on:
release:
types: [created]
push:

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

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

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

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

- name: Prepare amd64 binary
run: |
Expand All @@ -32,6 +35,7 @@ jobs:
chmod +x target/release/discrakt_arm64
- name: Upload binaries
if: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -46,7 +50,7 @@ jobs:
uses: actions/checkout@v4

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

- name: Build win64
run: cargo build --release
Expand All @@ -64,21 +68,22 @@ jobs:
run: mv target/release/discrakt.exe target/release/discrakt_win64_silent.exe

- name: Upload binaries
if: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref_name }} target/release/discrakt_win64_silent.exe
gh release upload ${{ github.ref_name }} target/release/discrakt_win64.exe
publish-mac:
runs-on: macos-latest
runs-on: macos-14

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

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

Expand All @@ -99,6 +104,7 @@ jobs:
chmod +x target/release/discrakt_darwin_arm64
- name: Upload binaries
if: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit 309d5d2

Please sign in to comment.