fixup! Update ci workflow to work with forgejo
All checks were successful
CI / build (push) Successful in 49s
All checks were successful
CI / build (push) Successful in 49s
This commit is contained in:
parent
db981f8df1
commit
0df614d885
1 changed files with 8 additions and 2 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -15,13 +15,19 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container: nixpkgs/nix-flakes:nixos-24.05
|
container: nixpkgs/nix-flakes:nixos-24.05
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout lfs
|
- name: Setup NIX CI Environment
|
||||||
|
run: |
|
||||||
|
nix profile install nixpkgs#git-lfs
|
||||||
|
echo "substituters = https://nixpkgs-cache.qo.is?priority=39" >> /etc/nix/nix.conf
|
||||||
|
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" >> /etc/nix/nix.conf
|
||||||
|
mkdir -p ~/.config/nix && cp /etc/nix/nix.conf ~/.config/nix/
|
||||||
|
- name: Checkout Repository
|
||||||
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
||||||
run: |
|
run: |
|
||||||
git clone --no-checkout https://oauth2:$GITHUB_TOKEN@git.qo.is/$GITHUB_REPOSITORY .
|
git clone --no-checkout https://oauth2:$GITHUB_TOKEN@git.qo.is/$GITHUB_REPOSITORY .
|
||||||
git lfs install --local
|
git lfs install --local
|
||||||
git lfs fetch $GITHUB_REF
|
|
||||||
git checkout --recurse-submodules $GITHUB_REF
|
git checkout --recurse-submodules $GITHUB_REF
|
||||||
|
git lfs pull
|
||||||
- name: Run Nix Build
|
- name: Run Nix Build
|
||||||
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
||||||
run: nix build .
|
run: nix build .
|
||||||
|
|
Loading…
Reference in a new issue