Skip to content

Commit

Permalink
+ Binary CI
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Oct 23, 2023
1 parent 2f9021e commit e1d9022
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/Binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,18 @@ jobs:
fi
- name: Build
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.use-cross }}
command: cd three_body_e2021; build
args: --target ${{ matrix.target }} --release --locked
shell: bash
run: |
cd three_body_e2021; cargo build --target ${{ matrix.target }} --release --locked
- name: Strip binary
if: matrix.strip
run: ${{ matrix.strip }} target/${{ matrix.target }}/release/3body${{ matrix.binary_ext }}
run: ${{ matrix.strip }} three_body_e2021/target/${{ matrix.target }}/release/3body${{ matrix.binary_ext }}

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/3body${{ matrix.binary_ext }}
file: three_body_e2021/target/${{ matrix.target }}/release/3body${{ matrix.binary_ext }}
asset_name: 3body-${{ matrix.target }}${{ matrix.binary_ext }}
tag: ${{ github.ref }}

0 comments on commit e1d9022

Please sign in to comment.