From 5effc34f69483f783bc735430c95b9e680e2423a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 28 Feb 2025 23:12:39 +0100 Subject: [PATCH] ci: Simplify a few steps curl and zstd are available on the CI image, no need to use the devshell for them. Signed-off-by: Gergely Nagy --- .forgejo/workflows/build.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 7aa9657..8fe9e2e 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -59,21 +59,17 @@ jobs: package: packages.${{ matrix.system }}.iocaine-static - name: compress the binary - uses: actions/nix/develop@main - with: - run: | - zstd result/bin/iocaine -o iocaine-latest.${{ matrix.system }}.zst + run: | + zstd result/bin/iocaine -o iocaine-latest.${{ matrix.system }}.zst - name: upload package - uses: actions/nix/develop@main - with: - run: | - curl --user :${{ secrets.DOCKER_PASSWORD }} -XDELETE \ - https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest - curl --user :${{ secrets.DOCKER_PASSWORD }} \ - --upload-file iocaine-latest.${{ matrix.system }}.zst \ - --fail \ - https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest/iocaine-latest.${{ matrix.system }}.zst + run: | + curl --user :${{ secrets.DOCKER_PASSWORD }} -XDELETE \ + https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest + curl --user :${{ secrets.DOCKER_PASSWORD }} \ + --upload-file iocaine-latest.${{ matrix.system }}.zst \ + --fail \ + https://git.madhouse-project.org/api/packages/iocaine/generic/iocaine-binaries/latest/iocaine-latest.${{ matrix.system }}.zst container: runs-on: nixos-latest