ci: use faster nix build
This commit is contained in:
parent
c50f961fa4
commit
159e2edaa7
1 changed files with 55 additions and 41 deletions
|
@ -8,56 +8,70 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-amd64-linux:
|
build-amd64-linux:
|
||||||
runs-on: ubuntu-latest-amd64
|
runs-on: nix-amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- name: Install Nix
|
- name: Cache Login
|
||||||
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
|
run: |
|
||||||
with:
|
echo "Logging in ..."
|
||||||
init: none
|
attic login --set-default attic ${{ secrets.ATTIC_ENDPOINT }} ${{ secrets.ATTIC_TOKEN }}
|
||||||
planner: linux
|
- run: |
|
||||||
github-token: null
|
nix build '.#anonymous-overflow'
|
||||||
- name: Setup Attic
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
uses: https://github.com/ryanccn/attic-action@v0
|
- run: |
|
||||||
with:
|
nix build '.#bulk-downloader-for-reddit'
|
||||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
cache: ${{ secrets.ATTIC_CACHE }}
|
- run: |
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
nix build '.#fennel-ls'
|
||||||
- run: nix build '.#anonymous-overflow'
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
- run: nix build '.#bulk-downloader-for-reddit'
|
- run: |
|
||||||
- run: nix build '.#fennel-ls'
|
nix build '.#headscale-ui'
|
||||||
- run: nix build '.#headscale-ui'
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
- run: nix build '.#lexical'
|
- run: |
|
||||||
- run: nix build '.#neovim-nightly'
|
nix build '.#lexical'
|
||||||
- run: nix build '.#q'
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
- run: nix build '.#rimgo'
|
- run: |
|
||||||
- run: nix build '.#rexit'
|
nix build '.#neovim-nightly'
|
||||||
- run: nix build '.#vuetorrent'
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
|
- run: |
|
||||||
|
nix build '.#q'
|
||||||
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
|
- run: |
|
||||||
|
nix build '.#rimgo'
|
||||||
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
|
- run: |
|
||||||
|
nix build '.#rexit'
|
||||||
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
|
- run: |
|
||||||
|
nix build '.#vuetorrent'
|
||||||
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
|
|
||||||
build-arm64-linux:
|
build-arm64-linux:
|
||||||
runs-on: ubuntu-latest-arm64
|
runs-on: nix-arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- name: Install Nix
|
- name: Cache Login
|
||||||
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
|
run: |
|
||||||
with:
|
echo "Logging in ..."
|
||||||
init: none
|
attic login --set-default attic ${{ secrets.ATTIC_ENDPOINT }} ${{ secrets.ATTIC_TOKEN }}
|
||||||
planner: linux
|
- run: |
|
||||||
github-token: null
|
nix build '.#fennel-ls'
|
||||||
- name: Setup Attic
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
uses: https://github.com/ryanccn/attic-action@v0
|
- run: |
|
||||||
with:
|
nix build '.#lexical'
|
||||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
cache: ${{ secrets.ATTIC_CACHE }}
|
- run: |
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
nix build '.#neovim-nightly'
|
||||||
- run: nix build '.#fennel-ls'
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
- run: nix build '.#lexical'
|
- run: |
|
||||||
- run: nix build '.#neovim-nightly'
|
nix build '.#q'
|
||||||
- run: nix build '.#q'
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
- run: nix build '.#weewx-proxy'
|
- run: |
|
||||||
|
nix build '.#weewx-proxy'
|
||||||
|
attic push ${{ secrets.ATTIC_CACHE }} ./result
|
||||||
|
|
Loading…
Reference in a new issue