mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
chore(build): remove gcc dependency
This commit is contained in:
parent
f204ca888d
commit
1d4156bdfe
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
@ -1,9 +1,10 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types:
|
# release:
|
||||||
- published
|
# types:
|
||||||
|
# - published
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@ -15,12 +16,9 @@ jobs:
|
|||||||
- platform: ubuntu-18.04
|
- platform: ubuntu-18.04
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
CC: gcc
|
|
||||||
- platform: ubuntu-18.04
|
- platform: ubuntu-18.04
|
||||||
package: gcc-aarch64-linux-gnu
|
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
CC: aarch64-linux-gnu-gcc
|
|
||||||
- platform: windows-latest
|
- platform: windows-latest
|
||||||
GOOS: windows
|
GOOS: windows
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
@ -43,10 +41,6 @@ jobs:
|
|||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
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
|
- name: Set version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -63,8 +57,8 @@ jobs:
|
|||||||
working-directory: ./dist
|
working-directory: ./dist
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} \
|
GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} CGO_ENABLED=0 \
|
||||||
CC=${{ matrix.CC }} CGO_ENABLED=0 go build -v -ldflags '-w -s' ../
|
go build -v -ldflags '-w -s' ../
|
||||||
|
|
||||||
- name: Compress working folder (Windows PowerShell)
|
- name: Compress working folder (Windows PowerShell)
|
||||||
working-directory: ./dist
|
working-directory: ./dist
|
||||||
@ -78,7 +72,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
zip -9 wakapi_${{ matrix.GOOS }}_${{ matrix.GOARCH }}.zip *
|
zip -9 wakapi_${{ matrix.GOOS }}_${{ matrix.GOARCH }}.zip *
|
||||||
|
|
||||||
- name: Upload built executable to Release
|
- name: Archive zip
|
||||||
uses: softprops/action-gh-release@v1
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
files: ./dist/*.zip
|
name: wakapi_${{ matrix.GOOS }}_${{ matrix.GOARCH }}.zip
|
||||||
|
path: dist/wakapi_${{ matrix.GOOS }}_${{ matrix.GOARCH }}.zip
|
||||||
|
|
||||||
|
# - name: Upload built executable to Release
|
||||||
|
# uses: softprops/action-gh-release@v1
|
||||||
|
# with:
|
||||||
|
# files: ./dist/*.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user