-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (46 loc) · 1.42 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14.4
id: go
- name: Set up binutils-mingw
run: sudo apt-get install binutils-mingw-w64-x86-64
- name: Set up GCC-mingw
run: sudo apt-get install gcc-mingw-w64-x86-64
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: make GOARCH=amd64 GOOS=windows CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1
working-directory: ./stammel
- uses: actions/upload-artifact@v2
with:
name: my-artifact
path: ./stammel/bin
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag : latest
prerelease: false
files: ./stammel/bin/stammel_go.dll
- name: copy stammel library to the root of git
run: cp ./stammel/bin/stammel_go.dll .
- name: push
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
commit-message: 'safely published by git actions, feel free to reuse it'
force-add: 'true'
files: stammel_go.dll
name: AZ-X