Skip to content

Commit 3b71d03

Browse files
committed
Avoid 3rd-party github actions
1 parent ee4767f commit 3b71d03

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/downstream-tests.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,37 @@ jobs:
1515
- pyo3
1616
os:
1717
- id: ubuntu-latest
18-
graalpy_platform: linux-amd64
18+
platform: linux
19+
arch: amd64
1920
- id: macos-latest
20-
graalpy_platform: darwin-aarch64
21+
platform: darwin
22+
arch: aarch64
2123

2224
runs-on: ${{ matrix.os.id }}
2325

2426
steps:
25-
- name: Install CMake
26-
if: ${{ matrix.name == 'pybind11' }}
27-
uses: lukka/get-cmake@latest
28-
with:
29-
cmakeVersion: 3.30.8
30-
ninjaVersion: 1.12.1
27+
- name: Install CMake (Linux)
28+
if: ${{ matrix.os.platform == 'linux' && matrix.name == 'pybind11' }}
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y cmake
32+
33+
- name: Install CMake (Darwin)
34+
if: ${{ matrix.os.platform == 'darwin' && matrix.name == 'pybind11' }}
35+
run: brew install cmake
3136

3237
- name: Install Rust toolchain
3338
if: ${{ matrix.name == 'pyo3' }}
34-
uses: actions-rs/toolchain@v1
35-
with:
36-
toolchain: stable
39+
run: |
40+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
41+
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
3742
3843
- name: Checkout main repository
3944
uses: actions/checkout@v4
4045

4146
- name: Get GraalPy EA build
4247
run: |
43-
tarball="$(curl -sfL https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/refs/heads/main/graalpy/versions/latest-native-${{ matrix.os.graalpy_platform }}.url)"
48+
tarball="$(curl -sfL https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/refs/heads/main/graalpy/versions/latest-native-${{ matrix.os.platform }}-${{ matrix.os.arch}}.url)"
4449
curl -sfL "$tarball" | tar xz
4550
4651
- name: Run downstream tests for ${{ matrix.name }}

0 commit comments

Comments
 (0)