diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4d9b9ec..2a34b47 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -83,11 +83,13 @@ jobs: curl -LO "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-musl.tar.gz" tar xf cross-x86_64-unknown-linux-musl.tar.gz echo "CARGO=cross" >> $GITHUB_ENV - echo "RUSTFLAGS='--cfg sd_cross_compile'" >> $GITHUB_ENV + echo "RUSTFLAGS=--cfg sd_cross_compile" >> $GITHUB_ENV echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV - name: Build + shell: bash run: | + $CARGO --version $CARGO build --release --locked --target ${{ matrix.target }} - name: Upload binaries to release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8036107..3ce9afe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,10 +77,11 @@ jobs: curl -LO "https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-musl.tar.gz" tar xf cross-x86_64-unknown-linux-musl.tar.gz echo "CARGO=cross" >> $GITHUB_ENV - echo "RUSTFLAGS='--cfg sd_cross_compile'" >> $GITHUB_ENV + echo "RUSTFLAGS=--cfg sd_cross_compile" >> $GITHUB_ENV echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV - name: Test shell: bash run: | + $CARGO --version $CARGO test --target ${{ matrix.target }}