Skip to content

Commit

Permalink
Use GitHub hosted arm Linux runner (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Jan 18, 2025
1 parent 5976207 commit 636d370
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

build_and_test: &BUILD_AND_TEST
# only run tasks on pull request or github merge queue branches
build_and_test:
&BUILD_AND_TEST # only run tasks on pull request or github merge queue branches
only_if: $CIRRUS_BRANCH =~ 'gh-readonly-queue/.*' || $CIRRUS_PR != ""
setup_script:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
Expand All @@ -31,20 +31,3 @@ freebsd_task:
- pkg install -y bash git python
- python3 -m ensurepip
<<: *BUILD_AND_TEST

linux_aarch64_task:
name: Test (arm64 Linux)
arm_container:
image: python:3.11
cpu: 4
memory: 4G
env:
PATH: /root/.cargo/bin:$PATH
target_cache:
folder: target
fingerprint_script:
- echo $CIRRUS_OS
- cat Cargo.lock
install_script:
- python3 -m pip install uniffi-bindgen==0.28.0
<<: *BUILD_AND_TEST
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- ubuntu-22.04-arm
- macos-13
- macos-14
- windows-latest
Expand All @@ -57,6 +58,12 @@ jobs:
# macOS M1 runner only have Python 3.11+
- os: macos-14
python-version: 3.9
# Quansight-Labs/setup-python@v5 doesn't' support Python 3.13t
- os: ubuntu-22.04-arm
python-version: 3.13t
# PyPy on ARM is not supported in setup-python action
- os: ubuntu-22.04-arm
python-version: pypy3.10
runs-on: ${{ matrix.os }}
env:
RUST_BACKTRACE: "1"
Expand Down

0 comments on commit 636d370

Please sign in to comment.