forked from NaxdyOrg/NaxGCC-FW
chore(ci): use public binary cache
This commit is contained in:
parent
aed495ae54
commit
bb2184fa29
2 changed files with 3 additions and 7 deletions
|
@ -13,10 +13,6 @@ jobs:
|
||||||
echo "extra-trusted-public-keys = attic:05LdE8Nav5Qd1E+KOJqSwdr+WE1z8AUmSb3oKL7s8dk=" >> /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"
|
nix profile install nixpkgs#nodejs "github:zhaofengli/attic?ref=6eabc3f02fae3683bffab483e614bebfcd476b21"
|
||||||
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
||||||
- name: Set up attic binary cache
|
|
||||||
run: |
|
|
||||||
attic login "${{ vars.BINARY_CACHE_NAME }}" "${{ vars.BINARY_CACHE_URL }}" "${{ secrets.BINARY_CACHE_AUTH_KEY }}"
|
|
||||||
attic use "${{ vars.BINARY_CACHE_NAME }}"
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -21,8 +21,8 @@ jobs:
|
||||||
echo "PATH=/nix/var/nix/profiles/per-user/root/profile/bin:$PATH" >> "$GITHUB_ENV"
|
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: |
|
run: |
|
||||||
attic login "${{ vars.BINARY_CACHE_NAME }}" "${{ vars.BINARY_CACHE_URL }}" "${{ secrets.BINARY_CACHE_AUTH_KEY }}"
|
attic login "${{ vars.PUBLIC_BINARY_CACHE_NAME }}" "${{ vars.BINARY_CACHE_URL }}" "${{ secrets.PUBLIC_BINARY_CACHE_AUTH_KEY }}"
|
||||||
attic use "${{ vars.BINARY_CACHE_NAME }}"
|
attic use "${{ vars.PUBLIC_BINARY_CACHE_NAME }}"
|
||||||
- name: Prepare SSH key
|
- name: Prepare SSH key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist && mkdir -p ~/.ssh
|
mkdir -p dist && mkdir -p ~/.ssh
|
||||||
|
@ -34,7 +34,7 @@ jobs:
|
||||||
- name: Push derivations to binary cache
|
- name: Push derivations to binary cache
|
||||||
run: |
|
run: |
|
||||||
cd /nix/store
|
cd /nix/store
|
||||||
attic push "${{ vars.BINARY_CACHE_NAME }}" $(ls /nix/store --ignore='*.drv' --ignore='*fake_nixpkgs*')
|
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"
|
||||||
|
|
Loading…
Reference in a new issue