Skip to content

Commit

Permalink
Use toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Aug 26, 2023
1 parent 998018b commit 318f288
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,23 @@ jobs:
os: ubuntu-latest
artifact_name: target/release/strava-rs
asset_name: strava-rs-linux
extra: "--target x86_64-unknown-linux-musl"
- name: macos
os: macos-latest
artifact_name: target/release/strava-rs
asset_name: strava-rs-macos
extra: ""
target: "x86_64-unknown-linux-musl"

steps:
- uses: actions/checkout@v3
- name: Rustup
run: rustup target add x86_64-unknown-linux-musl
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.target }}

- name: Build
run: cargo build --release --locked ${{ matrix.extra }}
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}

- name: Rename
run: mv ${{ matrix.artifact_name }} ${{ matrix.asset_name }}
Expand Down

0 comments on commit 318f288

Please sign in to comment.