mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Merge pull request #414 from muety/cgo
Remove gcc dependency in release
This commit is contained in:
commit
b287c4ca36
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -1,9 +1,7 @@
|
||||
name: ci
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -15,12 +15,9 @@ jobs:
|
||||
- platform: ubuntu-18.04
|
||||
GOOS: linux
|
||||
GOARCH: amd64
|
||||
CC: gcc
|
||||
- platform: ubuntu-18.04
|
||||
package: gcc-aarch64-linux-gnu
|
||||
GOOS: linux
|
||||
GOARCH: arm64
|
||||
CC: aarch64-linux-gnu-gcc
|
||||
- platform: windows-latest
|
||||
GOOS: windows
|
||||
GOARCH: amd64
|
||||
@ -43,10 +40,6 @@ jobs:
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install gcc
|
||||
if: "${{ matrix.package != '' }}"
|
||||
run: sudo apt-get update && sudo apt-get -y install ${{ matrix.package }}
|
||||
|
||||
- name: Set version
|
||||
shell: bash
|
||||
run: |
|
||||
@ -63,8 +56,8 @@ jobs:
|
||||
working-directory: ./dist
|
||||
shell: bash
|
||||
run: |
|
||||
GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} \
|
||||
CC=${{ matrix.CC }} CGO_ENABLED=0 go build -v -ldflags '-w -s' ../
|
||||
GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} CGO_ENABLED=0 \
|
||||
go build -v -ldflags '-w -s' ../
|
||||
|
||||
- name: Compress working folder (Windows PowerShell)
|
||||
working-directory: ./dist
|
||||
|
Loading…
Reference in New Issue
Block a user