ci: adapt to new format #24
3 changed files with 10 additions and 32 deletions
|
@ -11,12 +11,6 @@ jobs:
|
||||||
runs-on: nix-flakes
|
runs-on: nix-flakes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up packages
|
|
||||||
run: |
|
|
||||||
echo "extra-substituters = https://builder.naxdy.org/attic" >> /etc/nix/nix.conf
|
|
||||||
echo "extra-trusted-public-keys = attic:05LdE8Nav5Qd1E+KOJqSwdr+WE1z8AUmSb3oKL7s8dk=" >> /etc/nix/nix.conf
|
|
||||||
nix profile install nixpkgs#nodejs "github:zhaofengli/attic?ref=6eabc3f02fae3683bffab483e614bebfcd476b21"
|
|
||||||
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -13,24 +13,16 @@ jobs:
|
||||||
runs-on: nix-flakes
|
runs-on: nix-flakes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up packages
|
|
||||||
run: |
|
|
||||||
echo "extra-substituters = https://builder.naxdy.org/attic" >> /etc/nix/nix.conf
|
|
||||||
echo "extra-trusted-public-keys = attic:05LdE8Nav5Qd1E+KOJqSwdr+WE1z8AUmSb3oKL7s8dk=" >> /etc/nix/nix.conf
|
|
||||||
nix profile install nixpkgs#nodejs "github:zhaofengli/attic?ref=6eabc3f02fae3683bffab483e614bebfcd476b21"
|
|
||||||
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
|
||||||
- name: Set up attic binary cache
|
- name: Set up attic binary cache
|
||||||
run: |
|
uses: https://git.naxdy.org/NaxdyOrg/attic-action@v0.3
|
||||||
attic login "${{ vars.PUBLIC_BINARY_CACHE_NAME }}" "${{ vars.BINARY_CACHE_URL }}" "${{ secrets.PUBLIC_BINARY_CACHE_AUTH_KEY }}"
|
with:
|
||||||
attic use "${{ vars.PUBLIC_BINARY_CACHE_NAME }}"
|
endpoint: "${{ vars.BINARY_CACHE_URL }}"
|
||||||
|
token: "${{ secrets.PUBLIC_BINARY_CACHE_AUTH_KEY }}"
|
||||||
|
cache: "${{ vars.PUBLIC_BINARY_CACHE_NAME }}"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build firmware image
|
- name: Build firmware image
|
||||||
run: |
|
run: |
|
||||||
nix build .# -o dist --print-build-logs
|
nix build .# -o dist --print-build-logs
|
||||||
- name: Push derivations to binary cache
|
|
||||||
run: |
|
|
||||||
cd /nix/store
|
|
||||||
attic push "${{ vars.PUBLIC_BINARY_CACHE_NAME }}" $(ls /nix/store --ignore='*.drv' --ignore='*fake_nixpkgs*')
|
|
||||||
- name: (Re-)generate tag
|
- name: (Re-)generate tag
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "noreply@naxdy.org"
|
git config --global user.email "noreply@naxdy.org"
|
||||||
|
|
|
@ -10,24 +10,16 @@ jobs:
|
||||||
runs-on: nix-flakes
|
runs-on: nix-flakes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up packages
|
|
||||||
run: |
|
|
||||||
echo "extra-substituters = https://builder.naxdy.org/attic" >> /etc/nix/nix.conf
|
|
||||||
echo "extra-trusted-public-keys = attic:05LdE8Nav5Qd1E+KOJqSwdr+WE1z8AUmSb3oKL7s8dk=" >> /etc/nix/nix.conf
|
|
||||||
nix profile install nixpkgs#nodejs "github:zhaofengli/attic?ref=6eabc3f02fae3683bffab483e614bebfcd476b21"
|
|
||||||
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
|
||||||
- name: Set up attic binary cache
|
- name: Set up attic binary cache
|
||||||
run: |
|
uses: https://git.naxdy.org/NaxdyOrg/attic-action@v0.3
|
||||||
attic login "${{ vars.PUBLIC_BINARY_CACHE_NAME }}" "${{ vars.BINARY_CACHE_URL }}" "${{ secrets.PUBLIC_BINARY_CACHE_AUTH_KEY }}"
|
with:
|
||||||
attic use "${{ vars.PUBLIC_BINARY_CACHE_NAME }}"
|
endpoint: "${{ vars.BINARY_CACHE_URL }}"
|
||||||
|
token: "${{ secrets.PUBLIC_BINARY_CACHE_AUTH_KEY }}"
|
||||||
|
cache: "${{ vars.PUBLIC_BINARY_CACHE_NAME }}"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build firmware image
|
- name: Build firmware image
|
||||||
run: |
|
run: |
|
||||||
nix build .# -o dist --print-build-logs
|
nix build .# -o dist --print-build-logs
|
||||||
- name: Push derivations to binary cache
|
|
||||||
run: |
|
|
||||||
cd /nix/store
|
|
||||||
attic push "${{ vars.PUBLIC_BINARY_CACHE_NAME }}" $(ls /nix/store --ignore='*.drv' --ignore='*fake_nixpkgs*')
|
|
||||||
- name: Publish stable release
|
- name: Publish stable release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1.3.0
|
uses: https://gitea.com/actions/gitea-release-action@v1.3.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue