From c948d74afa67bbc3e1b26f7a87fe32a4eb9c3e1a Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 15 Dec 2023 22:27:48 +0100 Subject: [PATCH] feat(workflows): Switch to nix runner --- .forgejo/workflows/cache-ssg.yaml | 31 ---------------------------- .forgejo/workflows/deploy-dgnum.yaml | 9 +------- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 .forgejo/workflows/cache-ssg.yaml diff --git a/.forgejo/workflows/cache-ssg.yaml b/.forgejo/workflows/cache-ssg.yaml deleted file mode 100644 index 5025c14..0000000 --- a/.forgejo/workflows/cache-ssg.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Cache the SSG build -run-name: cache-ssg - -on: - push: - paths: - - 'ssg/**' - -jobs: - build-cache: - runs-on: debian-latest - steps: - - uses: actions/checkout@v3 - with: - path: dgnum.eu - - - name: Install sudo - run: apt update && apt install sudo - - - name: Install Nix - uses: https://github.com/cachix/install-nix-action@v22 - with: - nix_path: nixpkgs=channel:nixos-unstable - - - name: Install attic, build and cache - run: | - nix-env -iA npins - - npins init - npins add github zhaofengli attic -b main - diff --git a/.forgejo/workflows/deploy-dgnum.yaml b/.forgejo/workflows/deploy-dgnum.yaml index e5d787e..8cbf613 100644 --- a/.forgejo/workflows/deploy-dgnum.yaml +++ b/.forgejo/workflows/deploy-dgnum.yaml @@ -8,19 +8,12 @@ on: jobs: publish: - runs-on: debian-latest + runs-on: nix steps: - uses: actions/checkout@v3 with: path: dgnum.eu - - name: install sudo - run: apt update && apt install sudo - - - uses: https://github.com/cachix/install-nix-action@v22 - with: - nix_path: nixpkgs=channel:nixos-unstable - - name: Build website run: | # Hack to set the cache in the working directory