From f7c014dd07efef018a7a2f777c1078f22a57697c Mon Sep 17 00:00:00 2001 From: Agatha Lovelace Date: Sun, 10 Sep 2023 18:37:42 +0200 Subject: [PATCH] Better CI --- .github/workflows/build_nix.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml index 88a0031..2c2aeef 100644 --- a/.github/workflows/build_nix.yml +++ b/.github/workflows/build_nix.yml @@ -1,4 +1,4 @@ -name: "Build legacy Nix package on Ubuntu" +name: "Build Nix package on Ubuntu" on: push: @@ -7,13 +7,15 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v12 + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v23 - name: Building package - run: nix-build . -A packages.x86_64-linux.default + run: nix build + - name: Get repository name + run: echo "REPO_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV - name: Get commit hash run: echo "COMMIT_HASH=${GITHUB_SHA::6}" >> $GITHUB_ENV - uses: actions/upload-artifact@v3 with: - name: colorpickle-${{ env.COMMIT_HASH }}-x86_64-linux - path: result/bin/colorpickle + name: ${{ env.REPO_NAME }}-${{ env.COMMIT_HASH }}-x86_64-linux + path: result/bin/${{ env.REPO_NAME }} \ No newline at end of file