@@ -2,7 +2,6 @@ name: Continuous integration
22
33on :
44 push :
5- branches : master
65 pull_request :
76 branches : master
87 workflow_dispatch : # allows manual triggering
@@ -15,60 +14,60 @@ concurrency:
1514 cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
1615
1716jobs :
18- test-nixpkgs :
19- name : Build & Test - Nixpkgs - ${{ matrix.bzlmodEnabled && 'bzlmod' || 'workspace' }} ${{ matrix.withNixRemote && '- NixRemote ' || '' }}- ${{ matrix.os }}
20- strategy :
21- fail-fast : false
22- matrix :
23- os :
24- - ubuntu-latest
25- - macos-12
26- bzlmodEnabled :
27- - true
28- - false
29- withNixRemote :
30- - true
31- - false
32- exclude :
33- # skip nix remote jobs on MacOS
34- - os : macos-12
35- withNixRemote : true
36- runs-on : ${{ matrix.os }}
37- steps :
38- - uses : actions/checkout@v4
39- - uses : cachix/install-nix-action@v30
40- with :
41- nix_path : nixpkgs=./docs/nixpkgs.nix
42- - uses : ./.github/actions/configure_bazelrc
43- with :
44- buildbuddy_api_key : ${{ secrets.BUILDBUDDY_API_KEY }}
45- - name : Start remote Nix server
46- if : matrix.withNixRemote
47- run : |
48- # Generate temporary SSH keys.
49- mkdir -p $HOME/.ssh
50- mkdir -p .github/nix-server/keys
51- ssh-keygen -t ed25519 -f .github/nix-server/keys/ci -C ci-nix-server -q -N ""
52-
53- docker build -t nix-server -f .github/nix-server/Dockerfile .
54- docker run -d -p 2222:22 nix-server
55-
56- cp .github/nix-server/keys/* $HOME/.ssh/
57-
58- sudo cp .github/nix-server/config /etc/ssh/ssh_config
59-
60- echo "Setting BAZEL_NIX_REMOTE env variable"
61- echo BAZEL_NIX_REMOTE=nix-server >> "$GITHUB_ENV"
62- - name : Build & test
63- env :
64- BZLMOD_ENABLED : ${{ matrix.bzlmodEnabled }}
65- run : |
66- nix-shell --pure \
67- --keep GITHUB_STEP_SUMMARY \
68- --keep GITHUB_REPOSITORY \
69- --keep BZLMOD_ENABLED \
70- --keep BAZEL_NIX_REMOTE \
71- --run 'bash .github/build-and-test'
17+ # test-nixpkgs:
18+ # name: Build & Test - Nixpkgs - ${{ matrix.bzlmodEnabled && 'bzlmod' || 'workspace' }} ${{ matrix.withNixRemote && '- NixRemote ' || '' }}- ${{ matrix.os }}
19+ # strategy:
20+ # fail-fast: false
21+ # matrix:
22+ # os:
23+ # - ubuntu-latest
24+ # - macos-12
25+ # bzlmodEnabled:
26+ # - true
27+ # - false
28+ # withNixRemote:
29+ # - true
30+ # - false
31+ # exclude:
32+ # # skip nix remote jobs on MacOS
33+ # - os: macos-12
34+ # withNixRemote: true
35+ # runs-on: ${{ matrix.os }}
36+ # steps:
37+ # - uses: actions/checkout@v4
38+ # - uses: cachix/install-nix-action@v30
39+ # with:
40+ # nix_path: nixpkgs=./docs/nixpkgs.nix
41+ # - uses: ./.github/actions/configure_bazelrc
42+ # with:
43+ # buildbuddy_api_key: ${{ secrets.BUILDBUDDY_API_KEY }}
44+ # - name: Start remote Nix server
45+ # if: matrix.withNixRemote
46+ # run: |
47+ # # Generate temporary SSH keys.
48+ # mkdir -p $HOME/.ssh
49+ # mkdir -p .github/nix-server/keys
50+ # ssh-keygen -t ed25519 -f .github/nix-server/keys/ci -C ci-nix-server -q -N ""
51+
52+ # docker build -t nix-server -f .github/nix-server/Dockerfile .
53+ # docker run -d -p 2222:22 nix-server
54+
55+ # cp .github/nix-server/keys/* $HOME/.ssh/
56+
57+ # sudo cp .github/nix-server/config /etc/ssh/ssh_config
58+
59+ # echo "Setting BAZEL_NIX_REMOTE env variable"
60+ # echo BAZEL_NIX_REMOTE=nix-server >> "$GITHUB_ENV"
61+ # - name: Build & test
62+ # env:
63+ # BZLMOD_ENABLED: ${{ matrix.bzlmodEnabled }}
64+ # run: |
65+ # nix-shell --pure \
66+ # --keep GITHUB_STEP_SUMMARY \
67+ # --keep GITHUB_REPOSITORY \
68+ # --keep BZLMOD_ENABLED \
69+ # --keep BAZEL_NIX_REMOTE \
70+ # --run 'bash .github/build-and-test'
7271 test-examples :
7372 name : Build & Test - Examples
7473 strategy :
@@ -158,13 +157,13 @@ jobs:
158157 working-directory : examples/flakes
159158 run : bazel run --crosstool_top=@nixpkgs_config_cc//:toolchain :hello
160159
161- all_ci_tests :
162- runs-on : ubuntu-latest
163- needs :
164- - test-nixpkgs
165- - test-examples
166- if : ${{ always() }}
167- steps :
168- - uses : cgrindel/gha_join_jobs@794a2d117251f22607f1aab937d3fd3eaaf9a2f5 # v1
169- with :
170- github_token : ${{ secrets.GITHUB_TOKEN }}
160+ # all_ci_tests:
161+ # runs-on: ubuntu-latest
162+ # needs:
163+ # - test-nixpkgs
164+ # - test-examples
165+ # if: ${{ always() }}
166+ # steps:
167+ # - uses: cgrindel/gha_join_jobs@794a2d117251f22607f1aab937d3fd3eaaf9a2f5 # v1
168+ # with:
169+ # github_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments