fixup! Update ci workflow to work with forgejo
Some checks failed
CI / build (push) Failing after 32s
Some checks failed
CI / build (push) Failing after 32s
This commit is contained in:
parent
5efb3d0a4b
commit
24fbb27948
1 changed files with 3 additions and 4 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -13,19 +13,18 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
container: nixpkgs/nix-flakes:nixos-24.05
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: 'true' # Optional; should be the default
|
|
||||||
- name: Checkout lfs
|
- name: Checkout lfs
|
||||||
|
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
||||||
run: |
|
run: |
|
||||||
|
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||||
git lfs install --local
|
git lfs install --local
|
||||||
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
|
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
|
||||||
git config --local --unset http.${{ github.server_url }}/.extraheader
|
git config --local --unset http.${{ github.server_url }}/.extraheader
|
||||||
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||||
git lfs pull
|
git lfs pull
|
||||||
- name: Run Nix Build
|
- name: Run Nix Build
|
||||||
uses: docker://hub.docker.com/nixpkgs/nix-flakes:nixos-24.05
|
|
||||||
run: nix build .
|
run: nix build .
|
||||||
# - uses: actions/upload-pages-artifact@v3
|
# - uses: actions/upload-pages-artifact@v3
|
||||||
# with:
|
# with:
|
||||||
|
|
Loading…
Reference in a new issue