Skip to content

Commit f587666

Browse files
placeholder
1 parent 37eb014 commit f587666

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/scenario.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: scenario
2+
3+
on:
4+
push:
5+
tags:
6+
- 'scenario*'
7+
8+
env:
9+
GH_ACCESS_TOKEN: ${{ secrets.ACTIONS_PRIVATE_PACKAGE_SECRET }}
10+
11+
jobs:
12+
scenario-testing:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Setup Go
20+
uses: actions/setup-go@v4
21+
with:
22+
go-version: ^1.19
23+
- name: Install cross-compiler for linux/arm64
24+
run: sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
25+
- name: Run Goreleaser
26+
uses: goreleaser/goreleaser-action@v5
27+
with:
28+
version: latest
29+
args: release --clean --config .github/goreleaser/.goreleaser-for-linux.yaml --verbose
30+
env:
31+
GITHUB_TOKEN: ${{env.GH_ACCESS_TOKEN}}
32+
33+
build-macos-binary:
34+
runs-on: macos-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
- name: Setup Go
41+
uses: actions/setup-go@v4
42+
with:
43+
go-version: ^1.19
44+
- name: Run Goreleaser
45+
uses: goreleaser/goreleaser-action@v5
46+
with:
47+
version: latest
48+
args: release --clean --config .github/goreleaser/.goreleaser-for-darwin.yaml --verbose
49+
env:
50+
GITHUB_TOKEN: ${{env.GH_ACCESS_TOKEN}}
51+
52+
build-windows-binary:
53+
runs-on: windows-latest
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v4
57+
with:
58+
fetch-depth: 0
59+
- name: Setup Go
60+
uses: actions/setup-go@v4
61+
with:
62+
go-version: ^1.19
63+
- name: Run Goreleaser
64+
uses: goreleaser/goreleaser-action@v5
65+
with:
66+
version: latest
67+
args: release --clean --config .github/goreleaser/.goreleaser-for-windows.yaml --verbose
68+
env:
69+
GITHUB_TOKEN: ${{env.GH_ACCESS_TOKEN}}

0 commit comments

Comments
 (0)