2021-05-20 18:29:32 -04:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2021-05-20 18:18:14 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-02-27 19:21:21 -04:00
|
|
|
name: ${{ matrix.goos }}-${{ matrix.goarch }}
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-20 18:18:14 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-02-28 18:53:58 -04:00
|
|
|
goos: [linux, windows, darwin]
|
2022-02-27 19:21:21 -04:00
|
|
|
goarch: ["386", amd64, arm64]
|
2022-03-22 18:41:26 -04:00
|
|
|
exclude:
|
2022-02-27 19:21:21 -04:00
|
|
|
- goarch: "386"
|
2022-03-22 18:41:26 -04:00
|
|
|
goos: darwin
|
2022-02-27 19:21:21 -04:00
|
|
|
- goarch: arm64
|
|
|
|
goos: windows
|
2021-05-20 18:18:14 -04:00
|
|
|
steps:
|
2021-05-20 18:29:32 -04:00
|
|
|
- name: Checkout sources
|
2022-04-30 12:00:41 -04:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
2021-05-20 18:29:32 -04:00
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v2
|
2021-05-20 18:31:30 -04:00
|
|
|
with:
|
2022-02-27 19:38:59 -04:00
|
|
|
go-version: '1.17.7'
|
2021-05-20 18:29:32 -04:00
|
|
|
- name: Build
|
2022-03-02 06:42:48 -04:00
|
|
|
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build
|
2021-05-20 18:36:36 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2022-03-02 06:42:48 -04:00
|
|
|
if: matrix.goos == 'windows'
|
|
|
|
with:
|
2022-04-30 12:08:54 -04:00
|
|
|
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
2022-05-06 19:06:06 -04:00
|
|
|
path: |
|
|
|
|
hilbish.exe
|
|
|
|
LICENSE
|
|
|
|
README.md
|
|
|
|
CHANGELOG.md
|
|
|
|
.hilbishrc.lua
|
|
|
|
nature
|
|
|
|
libs
|
|
|
|
docs
|
|
|
|
emmyLuaDocs
|
2022-03-02 06:42:48 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: matrix.goos != 'windows'
|
2021-05-20 18:36:36 -04:00
|
|
|
with:
|
2022-02-27 19:21:21 -04:00
|
|
|
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
2022-04-30 10:48:32 -04:00
|
|
|
path: |
|
2022-05-06 19:06:06 -04:00
|
|
|
hilbish
|
2022-04-30 10:50:06 -04:00
|
|
|
LICENSE
|
|
|
|
README.md
|
|
|
|
CHANGELOG.md
|
|
|
|
.hilbishrc.lua
|
|
|
|
nature
|
|
|
|
libs
|
|
|
|
docs
|
|
|
|
emmyLuaDocs
|