From af7fff9935168c9782103d81bcaff22d2eab1b82 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Sun, 18 Aug 2024 15:57:29 +0200 Subject: [PATCH] generate artifacts in tar.gz (#5) --- .github/workflows/test.yml | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c848fc2..ad6d0a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,10 +15,12 @@ jobs: - run: make -f utils.mk build_32 + - run: tar -czf mtxrpicam_32.tar.gz mtxrpicam_32 + - uses: actions/upload-artifact@v4 with: - path: mtxrpicam_32 - name: mtxrpicam_32 + path: mtxrpicam_32.tar.gz + name: mtxrpicam_32.tar.gz build_64: runs-on: ubuntu-22.04 @@ -28,10 +30,12 @@ jobs: - run: make -f utils.mk build_64 + - run: tar -czf mtxrpicam_64.tar.gz mtxrpicam_64 + - uses: actions/upload-artifact@v4 with: - path: mtxrpicam_64 - name: mtxrpicam_64 + path: mtxrpicam_64.tar.gz + name: mtxrpicam_64.tar.gz test_bullseye_32: needs: build_32 @@ -42,10 +46,10 @@ jobs: - uses: actions/download-artifact@v4 with: - name: mtxrpicam_32 - path: mtxrpicam_32 + name: mtxrpicam_32.tar.gz + path: . - - run: chmod +x ./mtxrpicam_32/exe + - run: tar xvf mtxrpicam_32.tar.gz - run: make -f utils.mk test_bullseye_32 @@ -58,10 +62,10 @@ jobs: - uses: actions/download-artifact@v4 with: - name: mtxrpicam_64 - path: mtxrpicam_64 + name: mtxrpicam_64.tar.gz + path: . - - run: chmod +x ./mtxrpicam_64/exe + - run: tar xvf mtxrpicam_64.tar.gz - run: make -f utils.mk test_bullseye_64 @@ -74,10 +78,10 @@ jobs: - uses: actions/download-artifact@v4 with: - name: mtxrpicam_32 - path: mtxrpicam_32 + name: mtxrpicam_32.tar.gz + path: . - - run: chmod +x ./mtxrpicam_32/exe + - run: tar xvf mtxrpicam_32.tar.gz - run: make -f utils.mk test_bookworm_32 @@ -90,9 +94,9 @@ jobs: - uses: actions/download-artifact@v4 with: - name: mtxrpicam_64 - path: mtxrpicam_64 + name: mtxrpicam_64.tar.gz + path: . - - run: chmod +x ./mtxrpicam_64/exe + - run: tar xvf mtxrpicam_64.tar.gz - run: make -f utils.mk test_bookworm_64