From d1bf3d2f2e7de7c595a6e609b4dacdcfec39484d Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Tue, 19 Sep 2023 22:56:27 +0200 Subject: [PATCH] Add more build artifacts --- .github/workflows/go.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f85bf9a..841f529 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,8 +26,35 @@ jobs: run: go build -v . - name: Test run: go test -v . + - uses: actions/upload-artifact@v3 + with: + name: goldwarden-linux + path: ./goldwarden + + linux-packaging: + runs-on: ubuntu-latest + needs: linux + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download build artifact + uses: actions/download-artifact@v2 + - name: Makepkg build and check + id: makepkg + uses: edlanglois/pkgbuild-action@v1 + - name: Convert to deb + uses: bpicode/github-action-fpm@master + with: + fpm_args: './build' + fpm_opts: '--debug -n goldwarden -t deb -s pacman' + - name: Convert to rpm + uses: bpicode/github-action-fpm@master + with: + fpm_args: './build' + fpm_opts: '--debug -n goldwarden -t rpm -s pacman' + macos: - runs-on: macOS-latest + runs-on: macos-latest steps: - name: Checkout uses: actions/checkout@v1 @@ -39,6 +66,11 @@ jobs: run: go build -tags "nofido2 noautofill" -v . - name: Test run: go test -tags "nofido2 noautofill" -v . + - uses: actions/upload-artifact@v3 + with: + name: goldwarden-macos + path: ./goldwarden + windows: runs-on: windows-latest steps: @@ -52,3 +84,7 @@ jobs: run: go build -tags "nofido2 noautofill" -v . - name: Test run: go test -tags "nofido2 noautofill" -v . + - uses: actions/upload-artifact@v3 + with: + name: goldwarden-windows.exe + path: ./goldwarden.exe \ No newline at end of file