Skip to content

Commit

Permalink
CI: remove cross from build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
snpefk committed Aug 25, 2024
1 parent 9073fc7 commit 90c13c2
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ jobs:
- os: macos-latest
TARGET: aarch64-apple-darwin

- os: ubuntu-latest
TARGET: aarch64-unknown-linux-gnu

- os: ubuntu-latest
TARGET: armv7-unknown-linux-gnueabihf

- os: ubuntu-latest
TARGET: x86_64-unknown-linux-gnu

Expand All @@ -136,22 +130,11 @@ jobs:
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --profile default --target ${{ matrix.TARGET }} -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
# For linux, it's necessary to use cross from the git repository to avoid glibc problems
# Ref: https://github.com/cross-rs/cross/issues/1510
- name: Install cross for linux
if: contains(matrix.TARGET, 'linux')
run: |
cargo install cross --git https://github.com/cross-rs/cross --rev 1b8cf50d20180c1a394099e608141480f934b7f7
- name: Install cross for mac and windows
if: ${{ !contains(matrix.TARGET, 'linux') }}
run: |
cargo install cross
rustc -V
- name: Build
run: |
cross build --verbose --release --target=${{ matrix.TARGET }} --bin opensi-editor
cargo build --verbose --release --target=${{ matrix.TARGET }} --bin opensi-editor
- name: Rename
run: cp target/${{ matrix.TARGET }}/release/opensi-editor${{ matrix.EXTENSION }} opensi-editor-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
Expand Down

0 comments on commit 90c13c2

Please sign in to comment.