add termites for temp tornado fix #573
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Hosts | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - "*" | |
| concurrency: | |
| group: build-${{ github.ref || github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-flake: | |
| runs-on: ci-ocf-nix-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/flake-checker-action@v9 | |
| define-matrix: | |
| runs-on: ci-ocf-nix-build | |
| outputs: | |
| hosts: ${{ steps.hosts.outputs.hosts }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: hosts | |
| run: echo "hosts=$(nix eval .#colmenaHive.nodes --apply builtins.attrNames --json)" >> "$GITHUB_OUTPUT" | |
| build: | |
| runs-on: ci-ocf-nix-build | |
| needs: define-matrix | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| host: ${{ fromJSON(needs.define-matrix.outputs.hosts) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build with colmena | |
| run: nix develop -c colmena build --keep-result --on ${{ matrix.host }} >> ${{ matrix.host }}.log 2>&1 | |
| - name: Display log | |
| if: always() | |
| run: cat ${{ matrix.host }}.log | |
| check-all-hosts: | |
| runs-on: ci-ocf-nix-build | |
| needs: build | |
| steps: | |
| - name: Combined GitHub status check | |
| run: echo "All hosts built successfully!" |