Skip to content

Commit

Permalink
Use env variables correctly in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
richiksc committed Dec 6, 2020
1 parent bb841fa commit a0ee9c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
toolchain: beta
default: true
target: $ARM # This is in addition to the native target
target: ${{ env.ARM }} # This is in addition to the native target
profile: minimal
- name: Build for x86_64-apple-darwin
uses: actions-rs/cargo@v1
Expand All @@ -29,12 +29,12 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target $ARM
args: --release --target ${{ env.ARM }}
- name: Rename binaries
id: rename_binaries
run: |
mv target/release/badlogvis target/release/badlogvis-$TARGET
mv target/$ARM/release/badlogvis target/release/badlogvis-$ARM
mv target/release/badlogvis target/release/badlogvis-${{ env.TARGET }}
mv target/${{ env.ARM }}/release/badlogvis target/release/badlogvis-${{ env.ARM }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit a0ee9c0

Please sign in to comment.