From f60b89cfe3ee73f70fc8a2bff63fd331c0e73977 Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Sat, 24 Oct 2026 21:39:32 +0800 Subject: [PATCH 1/2] ci: test shell and PowerShell installers --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 607073b..e552f36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,26 @@ jobs: with: go-version-file: go.mod - run: go test ./... - - run: go vet ./... - - run: go build -o gorse-cli . - - run: sh -n install.sh + install: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v5 + - name: Test shell installer + if: runner.os != 'Windows' + env: + INSTALL_DIR: ${{ runner.temp }}/gorse-cli-install + run: | + sh install.sh + "$INSTALL_DIR/gorse-cli" --version + - name: Test PowerShell installer + if: runner.os == 'Windows' + shell: powershell + env: + INSTALL_DIR: ${{ runner.temp }}/gorse-cli-install + run: | + . ./install.ps1 + gorse-cli --version From 1c2b42c704dedb088e32cd20b19ff15216d0d875 Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Sat, 24 Oct 2026 21:43:37 +0800 Subject: [PATCH 2/2] ci: test ARM64 installers with default install paths --- .github/workflows/ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e552f36..136180a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,22 +18,18 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest, windows-11-arm] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v5 - name: Test shell installer if: runner.os != 'Windows' - env: - INSTALL_DIR: ${{ runner.temp }}/gorse-cli-install run: | sh install.sh - "$INSTALL_DIR/gorse-cli" --version + gorse-cli --version - name: Test PowerShell installer if: runner.os == 'Windows' shell: powershell - env: - INSTALL_DIR: ${{ runner.temp }}/gorse-cli-install run: | . ./install.ps1 gorse-cli --version