dontCheck fsnotify (test dep sandwich fails to build) #1942
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: "CI" | |
| on: | |
| pull_request: | |
| push: | |
| concurrency: | |
| group: ci-${{ github.event_name }}-${{ github.ref }} | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-14] | |
| env: | |
| MAINLINE: refs/heads/master | |
| DOCKERTAG: latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - uses: cachix/cachix-action@v16 | |
| with: | |
| name: srid | |
| signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" | |
| authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
| - name: Build 🔧 | |
| run: nix build -j4 | |
| - name: Retrieve neuron version | |
| run: | | |
| echo "NEURONVER=$(./result/bin/neuron --version)" >> $GITHUB_ENV | |
| - name: Publish Docker image to Docker Hub | |
| if: ${{ github.ref == env.MAINLINE && runner.os == 'Linux' }} | |
| run: | | |
| docker load -i $(nix-build docker.nix --argstr tag "${{ env.DOCKERTAG }}") | |
| docker tag "sridca/neuron:${{ env.DOCKERTAG }}" "sridca/neuron:${{env.NEURONVER}}" | |
| echo ${{ secrets.DOCKER_PASS }} | docker login -u sridca --password-stdin | |
| set -x | |
| docker push "sridca/neuron:${{ env.DOCKERTAG }}" | |
| docker push "sridca/neuron:${{ env.NEURONVER }}" |