disable ARM cross testing on non-native platforms, test native on GNU platform only, switch x86 macos to macos-13 runner

This commit is contained in:
2024-10-03 19:21:06 -05:00
parent 10a163aad2
commit 3742b265a7

View File

@@ -42,20 +42,28 @@ jobs:
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-musl target: x86_64-unknown-linux-musl
tools: musl-tools tools: musl-tools
# This will run against GNU target, not MUSL
test: native
- os: ubuntu-latest - os: ubuntu-latest
target: aarch64-unknown-linux-musl target: aarch64-unknown-linux-musl
tools: gcc-aarch64-linux-gnu tools: gcc-aarch64-linux-gnu
test: false
- os: ubuntu-latest - os: ubuntu-latest
target: armv7-unknown-linux-gnueabihf target: armv7-unknown-linux-gnueabihf
tools: gcc-arm-linux-gnueabihf tools: gcc-arm-linux-gnueabihf
- os: macos-latest test: false
- os: macos-13
target: x86_64-apple-darwin target: x86_64-apple-darwin
test: true
- os: macos-latest - os: macos-latest
target: aarch64-apple-darwin target: aarch64-apple-darwin
test: true
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
test: true
- os: windows-latest - os: windows-latest
target: aarch64-pc-windows-msvc target: aarch64-pc-windows-msvc
test: false
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
name: release-${{ matrix.target }} name: release-${{ matrix.target }}
@@ -92,7 +100,13 @@ jobs:
run: cargo build ${{ github.event.inputs.verbose == 'true' && '--verbose' || '' }} --release --target ${{ matrix.target }} run: cargo build ${{ github.event.inputs.verbose == 'true' && '--verbose' || '' }} --release --target ${{ matrix.target }}
- name: Run tests - name: Run tests
run: cargo test ${{ github.event.inputs.verbose == 'true' && '--verbose' || '' }} --target ${{ matrix.target }} if: matrix.test != 'false'
run: |
if [ "${{ matrix.test }}" = "native" ]; then
cargo test ${{ github.event.inputs.verbose == 'true' && '--verbose' || '' }} --release
else
cargo test ${{ github.event.inputs.verbose == 'true' && '--verbose' || '' }} --release --target ${{ matrix.target }}
fi
- name: Export Release Version - name: Export Release Version
run: echo "RELEASE_VERSION=$(grep '^version = ' Cargo.toml | sed 's/version = \"\(.*\)\"/\1/')" >> $GITHUB_ENV run: echo "RELEASE_VERSION=$(grep '^version = ' Cargo.toml | sed 's/version = \"\(.*\)\"/\1/')" >> $GITHUB_ENV