From c864129d84ae81006fa52208de1549bc2bc06f63 Mon Sep 17 00:00:00 2001 From: Per Larsen Date: Fri, 15 Mar 2024 07:40:26 +0000 Subject: [PATCH] CI: Disable QEMU workflows, add macOS/aarch64 workflow --- .../build-and-test-aarch64-darwin.yml | 27 +++++++++++++++++++ .github/workflows/build-and-test-aarch64.yml | 6 ++++- .github/workflows/build-and-test-arm7.yml | 6 ++++- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-and-test-aarch64-darwin.yml diff --git a/.github/workflows/build-and-test-aarch64-darwin.yml b/.github/workflows/build-and-test-aarch64-darwin.yml new file mode 100644 index 000000000..e5c296c2f --- /dev/null +++ b/.github/workflows/build-and-test-aarch64-darwin.yml @@ -0,0 +1,27 @@ +name: build and test on aarch64 with QEMU +on: [push, pull_request] +jobs: + test-on-macos-aarch64: + runs-on: macos-14 + name: test on macos-14-aarch64 + steps: + - name: install prerequisites + run: | + brew install meson rustup-init + rustup-init -y + - name: git checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + - run: source "$HOME/.cargo/env" && cargo build --release + env: + PATH: + - run: .github/workflows/test.sh -r ./target/release/dav1d -s ./target/release/seek_stress + - name: upload build artifacts + if: ${{ !cancelled() }} + uses: actions/upload-artifact@v3 + with: + name: meson-test-logs + path: | + ${{ github.workspace }}/build/meson-logs/testlog.txt + diff --git a/.github/workflows/build-and-test-aarch64.yml b/.github/workflows/build-and-test-aarch64.yml index 2d00dc896..a9facf011 100644 --- a/.github/workflows/build-and-test-aarch64.yml +++ b/.github/workflows/build-and-test-aarch64.yml @@ -1,5 +1,9 @@ name: build and test on aarch64 with QEMU -on: [push, pull_request] +on: + # * is a special character in YAML so we quote lines containing it + push: + branches: + - '**qemu**' # Run when pushing branches that have qemu in the name jobs: test-on-qemu-linux-aarch64: runs-on: ubuntu-latest diff --git a/.github/workflows/build-and-test-arm7.yml b/.github/workflows/build-and-test-arm7.yml index 3ad636792..b7c3b59f7 100644 --- a/.github/workflows/build-and-test-arm7.yml +++ b/.github/workflows/build-and-test-arm7.yml @@ -1,5 +1,9 @@ name: build and test on arm7 with QEMU -on: [push, pull_request] +on: + # * is a special character in YAML so we quote lines containing it + push: + branches: + - '**qemu**' # Run when pushing branches that have qemu in the name jobs: test-on-qemu-linux-arm7: runs-on: ubuntu-latest