From 9c2966ff9ef8d657ce0778ceef3dd2212eb3e1a3 Mon Sep 17 00:00:00 2001 From: Tiago Oliveira Date: Tue, 9 Apr 2024 14:49:08 +0100 Subject: [PATCH] deploy nix ci: add simple workflow --- .../workflows/amd64-linux-main-deploy-nix.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/amd64-linux-main-deploy-nix.yml diff --git a/.github/workflows/amd64-linux-main-deploy-nix.yml b/.github/workflows/amd64-linux-main-deploy-nix.yml new file mode 100644 index 00000000..7bb28059 --- /dev/null +++ b/.github/workflows/amd64-linux-main-deploy-nix.yml @@ -0,0 +1,33 @@ +name: amd64-linux-main + +on: + workflow_dispatch: + push: + branches: + - feature/nix + pull_request: + +jobs: + + compile: + runs-on: [self-hosted, linux, X64, amd64-deploy-nix] + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: compile + run: nix-shell --command "make -j$JOBS -C src/ CI=1 default" + + - name: print logs + run: nix-shell --command "make -C src/ CI=1 reporter" + + - name: return error if there are any errors + run: nix-shell --command "make -C src/ CI=1 err" + + - name: libjade-logs-src.tar.gz - contains non-empty logs and errors + if: always() + uses: actions/upload-artifact@v4 + with: + name: libjade-logs-src.tar.gz + path: src/libjade-logs-src.tar.gz +