Hilbish/.github/workflows/build.yml

65 lines
1.5 KiB
YAML
Raw Normal View History

name: Build
on:
2024-05-03 16:47:24 +00:00
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: ${{ matrix.goos }}-${{ matrix.goarch }}
runs-on: ubuntu-latest
strategy:
matrix:
2022-02-28 22:53:58 +00:00
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- name: Checkout sources
2024-05-03 16:47:24 +00:00
uses: actions/checkout@v4
2022-04-30 16:00:41 +00:00
with:
submodules: true
- name: Setup Go
2024-05-03 16:47:24 +00:00
uses: actions/setup-go@v5
2021-05-20 22:31:30 +00:00
with:
go-version: '1.18.8'
- name: Download Task
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
- name: Build
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} ./bin/task
2024-05-03 16:47:24 +00:00
- uses: actions/upload-artifact@v4
2022-03-02 10:42:48 +00:00
if: matrix.goos == 'windows'
with:
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:47:24 +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:
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
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