Automatically test bzip3 on riscv64 (#87)
* test riscv64 * move the risc64 test to ubuntu * fix the distro name and remove risc64 from debian tests
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8f5bdc5..d878964 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -56,7 +56,7 @@ jobs:
run: make roundtrip
build-archs:
- name: Build Matrix for non-x86 architectures
+ name: Build Matrix for non-x86 architectures (Debian Stretch)
needs: [ dist ]
strategy:
fail-fast: false
@@ -87,3 +87,35 @@ jobs:
cd /bzip3
./configure CC=${{ matrix.compiler }} --${{ matrix.feature }} --disable-arch-native --disable-link-time-optimization
make && make roundtrip
+ build-archs-ubuntu:
+ name: Build Matrix for non-x86 architectures (Ubuntu Latest)
+ needs: [ dist ]
+ strategy:
+ fail-fast: false
+ matrix:
+ compiler: [ clang, gcc ]
+ feature: [ with-pthread, without-pthread ]
+ arch: [ riscv64 ]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Download source package artifact
+ uses: actions/download-artifact@v3
+ with:
+ name: bzip3-${{ github.sha }}
+ - name: Extract source package
+ run: tar --strip-components=1 -xf bzip3-${{ github.sha}}.tar.gz
+ - uses: uraimo/run-on-arch-action@v2
+ name: Run in the container
+ with:
+ arch: ${{ matrix.arch }}
+ distro: ubuntu_latest
+ shell: /bin/sh
+ dockerRunArgs: |
+ --volume "${PWD}:/bzip3"
+ install: |
+ apt update -q -y
+ apt install -q -y clang gcc make
+ run: |
+ cd /bzip3
+ ./configure CC=${{ matrix.compiler }} --${{ matrix.feature }} --disable-arch-native --disable-link-time-optimization
+ make && make roundtrip
