.github: Update actions, switch to DetSys installer

This commit is contained in:
Zhaofeng Li 2023-01-27 23:44:41 -07:00
parent 95c5fa17fc
commit 9a81798083
5 changed files with 24 additions and 36 deletions

View file

@ -18,16 +18,13 @@ jobs:
name: ${{ matrix.os.label }} + Nix ${{ matrix.nix.version }} name: ${{ matrix.os.label }} + Nix ${{ matrix.nix.version }}
runs-on: ${{ matrix.os.image }} runs-on: ${{ matrix.os.image }}
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3.3.0
- uses: cachix/install-nix-action@v17 - name: Install Nix
with: uses: zhaofengli/nix-installer-action@zhaofeng
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- name: Enable Binary Cache - name: Enable Binary Cache
uses: cachix/cachix-action@v10 uses: cachix/cachix-action@v12
with: with:
name: colmena name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -16,16 +16,13 @@ jobs:
url: https://releases.nixos.org/nix/nix-2.10.3/install url: https://releases.nixos.org/nix/nix-2.10.3/install
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v3.3.0
- uses: cachix/install-nix-action@v17 - name: Install Nix
with: uses: zhaofengli/nix-installer-action@zhaofeng
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- name: Enable binary cache (optional) - name: Enable binary cache
uses: cachix/cachix-action@v10 uses: cachix/cachix-action@v12
with: with:
name: colmena name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -22,15 +22,13 @@ jobs:
url: https://releases.nixos.org/nix/nix-2.10.3/install url: https://releases.nixos.org/nix/nix-2.10.3/install
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3.3.0
- uses: cachix/install-nix-action@v17 - name: Install Nix
with: uses: zhaofengli/nix-installer-action@zhaofeng
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10 - name: Enable Binary Cache
uses: cachix/cachix-action@v12
with: with:
name: colmena name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -22,15 +22,13 @@ jobs:
url: https://releases.nixos.org/nix/nix-2.10.3/install url: https://releases.nixos.org/nix/nix-2.10.3/install
steps: steps:
- uses: actions/checkout@v3.0.2 - uses: actions/checkout@v3.3.0
- uses: cachix/install-nix-action@v17 - name: Install Nix
with: uses: zhaofengli/nix-installer-action@zhaofeng
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10 - name: Enable Binary Cache
uses: cachix/cachix-action@v12
with: with:
name: colmena name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

@ -20,17 +20,15 @@ jobs:
name: ${{ matrix.os.label }} + Nix ${{ matrix.nix.version }} name: ${{ matrix.os.label }} + Nix ${{ matrix.nix.version }}
runs-on: ${{ matrix.os.image }} runs-on: ${{ matrix.os.image }}
steps: steps:
- uses: actions/checkout@v2.3.5 - uses: actions/checkout@v3.3.0
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: cachix/install-nix-action@v17 - name: Install Nix
with: uses: zhaofengli/nix-installer-action@zhaofeng
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10 - name: Enable Binary Cache
uses: cachix/cachix-action@v12
with: with:
name: colmena name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'