Update build-release.yml

This commit is contained in:
shenlan 2025-05-20 12:53:43 +08:00 committed by GitHub
parent 95c027d567
commit e6bbd81605
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,21 +62,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
arch: [amd64]
goarch: [amd64, arm64]
steps:
- name: Download binary
uses: actions/download-artifact@v4
with:
name: pulumigo-${{ matrix.os }}-${{ matrix.arch }}
name: pulumigo-${{ matrix.goos }}-${{ matrix.goarch }}
path: test-dir
- name: Extract and test CLI
run: |
cd test-dir
tar -xzf PulumiGo-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
chmod +x PulumiGo-${{ matrix.os }}-${{ matrix.arch }}
./PulumiGo-${{ matrix.os }}-${{ matrix.arch }} --help
tar -xzf PulumiGo-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
chmod +x PulumiGo-${{ matrix.goos }}-${{ matrix.goarch }}
./PulumiGo-${{ matrix.goos }}-${{ matrix.goarch }} --help
publish-release:
name: Publish Daily Release