|
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | strategy: |
10 | 10 | matrix: |
11 | | - # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64 |
12 | 11 | goos: [windows] |
13 | 12 | goarch: [amd64] |
14 | | - # goarch: ['386', amd64] |
15 | | - # exclude: |
16 | | - # - goarch: '386' |
17 | | - # goos: darwin |
18 | 13 | steps: |
19 | 14 | - uses: actions/checkout@v2 |
20 | 15 | - name: Install dependencies |
21 | | - run: sudo apt-get install build-essential gcc_mingw64 |
| 16 | + run: sudo apt-get install build-essential mingw-w64 |
22 | 17 | - name: Set VERSION env |
23 | 18 | run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} |
24 | 19 | - name: Set GO env |
|
31 | 26 | build_command: make clean && make |
32 | 27 | md5sum: FALSE |
33 | 28 | extra_files: .env.sample app build template |
34 | | - releases-darwin: |
35 | | - name: Release Authorizer Binary |
36 | | - runs-on: ubuntu-latest |
37 | | - strategy: |
38 | | - matrix: |
39 | | - # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64 |
40 | | - goos: [darwin] |
41 | | - goarch: [amd64] |
42 | | - # goarch: ['386', amd64] |
43 | | - # exclude: |
44 | | - # - goarch: '386' |
45 | | - # goos: darwin |
46 | | - steps: |
47 | | - - uses: actions/checkout@v2 |
48 | | - - name: Install dependencies |
49 | | - run: sudo apt-get install build-essential gcc g++ zlib1g-dev libmpc-dev libmpfr-dev libgmp-dev |
50 | | - - name: Set VERSION env |
51 | | - run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} |
52 | | - - name: Set GO env |
53 | | - run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=o64-clang >> ${GITHUB_ENV} |
54 | | - - uses: wangyoucao577/[email protected] |
55 | | - with: |
56 | | - github_token: ${{ secrets.RELEASE_TOKEN }} |
57 | | - goos: ${{ matrix.goos }} |
58 | | - goarch: ${{ matrix.goarch }} |
59 | | - build_command: make clean && make |
60 | | - md5sum: FALSE |
61 | | - extra_files: .env.sample app build template |
0 commit comments