2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-14 10:20:41 +00:00

66 lines
1.8 KiB
YAML
Raw Normal View History

name: Build
on:
2024-05-03 12:47:24 -04:00
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
2024-07-21 12:24:10 -04:00
name: ${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.midnight == 'true' && ' (Midnight Edition)' || ''}}
runs-on: ubuntu-latest
strategy:
matrix:
2024-07-21 11:37:08 -04:00
midnight: [false, true]
2022-02-28 18:53:58 -04: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 12:47:24 -04:00
uses: actions/checkout@v4
2022-04-30 12:00:41 -04:00
with:
submodules: true
- name: Setup Go
2024-05-03 12:47:24 -04:00
uses: actions/setup-go@v5
2021-05-20 18:31:30 -04:00
with:
2024-07-19 09:48:01 -04:00
go-version: '1.22.2'
- name: Download Task
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
2024-07-21 12:24:10 -04:00
- name: Build
2024-07-21 11:37:08 -04:00
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} ./bin/task ${{ matrix.midnight == 'true' && 'midnight' || ''}}
2024-05-03 12:47:24 -04:00
- uses: actions/upload-artifact@v4
2022-03-02 06:42:48 -04:00
if: matrix.goos == 'windows'
with:
name: hilbish${{ matrix.midnight == 'true' && '-midnight-edition' || ''}}-${{ 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
2024-05-03 12:47:24 -04:00
- uses: actions/upload-artifact@v4
2022-03-02 06:42:48 -04:00
if: matrix.goos != 'windows'
2021-05-20 18:36:36 -04:00
with:
name: hilbish${{ matrix.midnight == 'true' && '-midnight-edition' || ''}}-${{ matrix.goos }}-${{ matrix.goarch }}
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