Merge pull request #415 from k1LoW/tagpr-from-v0.62.1 #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- .github/workflows/release-test.yml | |
- .goreleaser/*.yml | |
jobs: | |
release-test-darwin: | |
name: Release assets test for maoOS | |
runs-on: macos-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run GoReleaser (dry-run) | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: --config .goreleaser/darwin.yml --clean --snapshot --skip=publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
release-test-linux: | |
name: Release assets test for Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up gcc-aarch64-linux-gnu | |
run: | | |
sudo apt-get update || true | |
sudo apt-get install -y gcc-aarch64-linux-gnu | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run GoReleaser (dry-run) | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: --config .goreleaser/linux.yml --clean --snapshot --skip=publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
release-test-windows: | |
name: Release assets test for Windows | |
runs-on: windows-latest | |
steps: | |
- name: Use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Run GoReleaser (dry-run) | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: --config .goreleaser/windows.yml --clean --snapshot --skip=publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |