2021-05-20 22:29:32 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2021-05-20 22:18:14 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-02-27 23:21:21 +00:00
|
|
|
name: ${{ matrix.goos }}-${{ matrix.goarch }}
|
|
|
|
runs-on: ubuntu-latest
|
2021-05-20 22:18:14 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-02-28 22:53:58 +00:00
|
|
|
goos: [linux, windows, darwin]
|
2022-02-27 23:21:21 +00:00
|
|
|
goarch: ["386", amd64, arm64]
|
2022-03-22 22:41:26 +00:00
|
|
|
exclude:
|
2022-02-27 23:21:21 +00:00
|
|
|
- goarch: "386"
|
2022-03-22 22:41:26 +00:00
|
|
|
goos: darwin
|
2022-02-27 23:21:21 +00:00
|
|
|
- goarch: arm64
|
|
|
|
goos: windows
|
2021-05-20 22:18:14 +00:00
|
|
|
steps:
|
2021-05-20 22:29:32 +00:00
|
|
|
- name: Checkout sources
|
2024-05-03 16:38:23 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-04-30 16:00:41 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2021-05-20 22:29:32 +00:00
|
|
|
- name: Setup Go
|
2024-05-03 16:38:23 +00:00
|
|
|
uses: actions/setup-go@v5
|
2021-05-20 22:31:30 +00:00
|
|
|
with:
|
2022-12-02 13:39:22 +00:00
|
|
|
go-version: '1.18.8'
|
2022-07-09 15:44:53 +00:00
|
|
|
- name: Download Task
|
|
|
|
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
|
2021-05-20 22:29:32 +00:00
|
|
|
- name: Build
|
2022-07-09 15:44:53 +00:00
|
|
|
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} ./bin/task
|
2024-05-03 16:38:23 +00:00
|
|
|
- uses: actions/upload-artifact@v4
|
2022-03-02 10:42:48 +00:00
|
|
|
if: matrix.goos == 'windows'
|
|
|
|
with:
|
2022-04-30 16:08:54 +00:00
|
|
|
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
2022-05-06 23:06:06 +00:00
|
|
|
path: |
|
|
|
|
hilbish.exe
|
|
|
|
LICENSE
|
|
|
|
README.md
|
|
|
|
CHANGELOG.md
|
|
|
|
.hilbishrc.lua
|
|
|
|
nature
|
|
|
|
libs
|
|
|
|
docs
|
|
|
|
emmyLuaDocs
|
2024-05-03 16:38:23 +00:00
|
|
|
- uses: actions/upload-artifact@v4
|
2022-03-02 10:42:48 +00:00
|
|
|
if: matrix.goos != 'windows'
|
2021-05-20 22:36:36 +00:00
|
|
|
with:
|
2022-02-27 23:21:21 +00:00
|
|
|
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
2022-04-30 14:48:32 +00:00
|
|
|
path: |
|
2022-05-06 23:06:06 +00:00
|
|
|
hilbish
|
2022-04-30 14:50:06 +00:00
|
|
|
LICENSE
|
|
|
|
README.md
|
|
|
|
CHANGELOG.md
|
|
|
|
.hilbishrc.lua
|
|
|
|
nature
|
|
|
|
libs
|
|
|
|
docs
|
|
|
|
emmyLuaDocs
|