Trying get the github build to work #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build-v2: | |
name: Build v2 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '^1.21', 'oldstable', 'stable' ] | |
steps: | |
- uses: extractions/setup-just@v1 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
just | |
env: | |
GOPATH: /home/runner/work/go | |
build-v1: | |
name: Build v1 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '^1.14', 'oldstable', 'stable' ] | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
mkdir -p $GOPATH/bin | |
echo 'export PATH=$PATH:$GOPATH/bin' > runme.sh | |
echo 'make tools all' >> runme.sh | |
chmod +x runme.sh | |
./runme.sh | |
env: | |
GOPATH: /home/runner/work/go | |