From 90c13c2340f47ad75aff41d71df8827b89259fe4 Mon Sep 17 00:00:00 2001 From: Fedor Tolstonozhenko Date: Sun, 25 Aug 2024 22:42:22 +0200 Subject: [PATCH] CI: remove cross from build steps --- .github/workflows/rust.yml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a14b78a..7c0c99f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -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 }}