Skip to content

Launcher2

Launcher2 #1

Workflow file for this run

name: launcher2
on:
release:
types: [created]
push:
branches:
- main
pull_request: {}
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '>=1.21.0'
- run: go test ./...
working-directory: ./launcher_go/v2
build_latest:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: write
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
goos: [linux, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: ./launcher_go/v2
binary_name: launcher2
overwrite: true
release_tag: latest
build_release:
if: github.event_name == 'release'
permissions:
contents: write
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
goos: [linux, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: ./launcher_go/v2
binary_name: launcher2