Skip to content

Commit 0e2b1cc

Browse files
authored
Merge pull request #1776 from filecoin-project/revert-1764-self-hosted-ci
Revert "Switch over to self hosted CI"
2 parents dac5289 + 6de6fdb commit 0e2b1cc

File tree

1 file changed

+71
-25
lines changed

1 file changed

+71
-25
lines changed

.github/workflows/ci.yml

Lines changed: 71 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,29 @@ env:
1818

1919
jobs:
2020
check_clippy:
21-
runs-on: self-hosted
21+
runs-on: ubuntu-24.04
2222
name: Clippy
2323
steps:
2424
- uses: actions/checkout@v4
25+
- name: Install required packages
26+
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
27+
- name: Install cargo clippy
28+
run: rustup component add clippy
2529
- name: Run cargo clippy
2630
run: cargo clippy --all-targets --workspace -- -D warnings
2731

2832
check_fmt:
29-
runs-on: self-hosted
33+
runs-on: ubuntu-24.04
3034
name: Checking fmt
3135
steps:
3236
- uses: actions/checkout@v4
37+
- name: Install cargo fmt
38+
run: rustup component add rustfmt
3339
- name: Run cargo fmt
3440
run: cargo fmt --all -- --check
3541

3642
test_release:
37-
runs-on: self-hosted
43+
runs-on: ubuntu-24.04
3844
name: Test in release mode
3945
strategy:
4046
matrix:
@@ -44,56 +50,96 @@ jobs:
4450
FIL_PROOFS_USE_MULTICORE_SDR: true
4551
steps:
4652
- uses: actions/checkout@v4
53+
- name: Install required packages
54+
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
55+
56+
- name: Download the proof params
57+
uses: ./.github/actions/proof-params-download
58+
with:
59+
github-token: ${{ secrets.GITHUB_TOKEN }}
60+
4761
- name: Run usual tests in release profile
4862
run: cargo test --verbose --release --workspace --all-targets ${{ matrix.cargo-args }} -- --nocapture
4963
- name: Run isolated PoRep tests in release profile
50-
run: cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --nocapture --test-threads=1
64+
# Getting the cores does not work on GitHub Actions, hence skip that
65+
# specific test.
66+
run: cargo test --release -p storage-proofs-porep --features isolated-testing ${{ matrix.cargo-args }} -- --nocapture --skip stacked::vanilla::cores::tests::test_checkout_cores
5167
- name: Run isolated update tests in release profile
52-
run: cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --nocapture
68+
# Some `storage-proofs-update` tests need to run sequentially due to
69+
# their high memory usage.
70+
run: cargo test --release -p storage-proofs-update --features isolated-testing ${{ matrix.cargo-args }} -- --nocapture --test-threads=1
5371

5472
test_ignored_release:
55-
runs-on: self-hosted
73+
runs-on: ubuntu-24.04
5674
name: Test ignored in release mode
5775
steps:
5876
- uses: actions/checkout@v4
77+
- name: Install required packages
78+
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
79+
80+
- name: Download the proof params
81+
uses: ./.github/actions/proof-params-download
82+
with:
83+
github-token: ${{ secrets.GITHUB_TOKEN }}
84+
5985
- name: Test ignored in release profile
6086
run: cargo test --release --workspace -- ignored --nocapture
6187

6288
test_no_default_features:
63-
runs-on: self-hosted
89+
runs-on: ubuntu-24.04
6490
name: Test without default features
6591
steps:
6692
- uses: actions/checkout@v4
93+
- name: Install required packages
94+
run: sudo apt install --no-install-recommends --yes libhwloc-dev ocl-icd-opencl-dev
95+
96+
- name: Download the proof params
97+
uses: ./.github/actions/proof-params-download
98+
with:
99+
github-token: ${{ secrets.GITHUB_TOKEN }}
100+
67101
- name: Test ignored in release profile
68102
run: cargo test --release --workspace --no-default-features
69103

70104
build_gpu:
71-
runs-on: self-hosted
105+
runs-on: ubuntu-24.04
72106
name: Build with various GPU support enabled
73107
steps:
74108
- uses: actions/checkout@v4
109+
- name: Install required packages
110+
run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
111+
75112
- name: Build with `cuda` and `opencl` features enabled
76113
run: cargo build --workspace --features cuda,opencl
77114
- name: Build with `cuda-supraseal` feature enabled
78115
run: CC=gcc-12 CXX=g++-12 NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-12' cargo build --workspace --no-default-features --features cuda-supraseal
79116

80-
test_gpu:
81-
runs-on: self-hosted
82-
name: Test on GPUs
83-
strategy:
84-
matrix:
85-
test-args: ['', '--ignored']
86-
env:
87-
FIL_PROOFS_USE_GPU_COLUMN_BUILDER: true
88-
FIL_PROOFS_USE_GPU_TREE_BUILDER: true
89-
BELLMAN_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
90-
NEPTUNE_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
91-
steps:
92-
- uses: actions/checkout@v4
93-
- name: Test with CUDA
94-
run: cargo test --verbose --release --workspace --features cuda -- --nocapture ${{ matrix.test-args }} -- --test-threads=1
95-
- name: Test with `cuda-supraseal`
96-
run: CC=gcc-12 CXX=g++-12 NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-12' cargo test -p filecoin-proofs --release --no-default-features --features cuda-supraseal -- --nocapture --test-threads=1 ${{ matrix.test-args }}
117+
# Commented out until we run it on hardware with actual GPUs.
118+
#test_gpu:
119+
# runs-on: ubuntu-24.04
120+
# name: Test on GPUs
121+
# strategy:
122+
# matrix:
123+
# test-args: ['', '--ignored']
124+
# env:
125+
# FIL_PROOFS_USE_GPU_COLUMN_BUILDER: true
126+
# FIL_PROOFS_USE_GPU_TREE_BUILDER: true
127+
# BELLMAN_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
128+
# NEPTUNE_CUDA_NVCC_ARGS: --fatbin --gpu-architecture=sm_75 --generate-code=arch=compute_75,code=sm_75
129+
# steps:
130+
# - uses: actions/checkout@v4
131+
# - name: Install required packages
132+
# run: sudo apt install --no-install-recommends --yes libhwloc-dev nvidia-cuda-toolkit ocl-icd-opencl-dev
133+
#
134+
# - name: Download the proof params
135+
# uses: ./.github/actions/proof-params-download
136+
# with:
137+
# github-token: ${{ secrets.GITHUB_TOKEN }}
138+
#
139+
# - name: Test with CUDA
140+
# run: cargo test --verbose --release --workspace --features cuda -- --nocapture ${{ matrix.test-args }}
141+
# - name: Test with `cuda-supraseal`
142+
# run: CC=gcc-12 CXX=g++-12 NVCC_PREPEND_FLAGS='-ccbin /usr/bin/g++-12' cargo test -p filecoin-proofs --release --no-default-features --features cuda-supraseal -- --nocapture --test-threads=1 ${{ matrix.test-args }}
97143

98144
test_macos:
99145
runs-on: macos-latest

0 commit comments

Comments
 (0)