Skip to content

bump go to 1.22

bump go to 1.22 #65

Workflow file for this run

name: '🧑‍🏭'
on: [ push ]
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v') == true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: "nixpkgs=channel:nixos-23.11"
- name: 'Activate Nix store cache'
uses: actions/cache@v4
id: nix-cache
with:
path: "/tmp/nixcache"
key: "nix-store-${{ hashFiles(format('{0}/tools/build.sh', github.workspace)) }}"
- name: "Import Nix store cache"
if: "steps.nix-cache.outputs.cache-hit == 'true'"
run: nix-store --import < /tmp/nixcache
- run: |
make check
- run: |
make release
- name: "Export Nix store cache"
if: >
( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' )
&& steps.nix-cache.outputs.cache-hit != 'true'
run: nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache
- uses: softprops/action-gh-release@v1
with:
body: 'Built at commit: ${{ github.sha }}'
files: 'out/*'