Document Apple Silicon support and bump to 1.9.37.0 #1956
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: | |
| branches: [master] | |
| concurrency: | |
| group: ci-${{ github.event_name }}-${{ github.ref }} | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-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 == 'refs/heads/master' && runner.os == 'Linux' }} | |
| run: | | |
| docker load -i $(nix build .#dockerImage --print-out-paths) | |
| docker tag "sridca/neuron:dev" "sridca/neuron:latest" | |
| docker tag "sridca/neuron:dev" "sridca/neuron:${{ env.NEURONVER }}" | |
| echo ${{ secrets.DOCKER_PASS }} | docker login -u sridca --password-stdin | |
| set -x | |
| docker push "sridca/neuron:latest" | |
| docker push "sridca/neuron:${{ env.NEURONVER }}" |