.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 }}
runs-on: ${{ matrix.os.image }}
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.3.0
- uses: cachix/install-nix-action@v17
with:
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- name: Install Nix
uses: zhaofengli/nix-installer-action@zhaofeng
- name: Enable Binary Cache
uses: cachix/cachix-action@v10
uses: cachix/cachix-action@v12
with:
name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

View file

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

View file

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

View file

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

View file

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