dev: Fix tests & env variables #47
This file contains 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, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.x' | |
- name: Install dependencies | |
run: go get . | |
- name: Build Linux amd64 | |
run: GOARCH=amd64 go build -v -o foldcli-amd64-linux . | |
- name: Build Linux arm64 | |
run: GOARCH=arm64 go build -v -o foldcli-arm64-linux . | |
- name: Build Windows amd64 | |
run: GOARCH=amd64 GOOS=windows go build -v -o foldcli-amd64-win.exe . | |
- name: Build Windows arm64 | |
run: GOARCH=arm64 GOOS=windows go build -v -o foldcli-arm64-win.exe . | |
- name: Build MacOS arm64 | |
run: GOARCH=arm64 GOOS=darwin go build -v -o foldcli-arm64-macos . | |
- name: Build MacOS amd64 | |
run: GOARCH=amd64 GOOS=darwin go build -v -o foldcli-amd64-macos . | |
- name: Upload Build Results | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: foldcli executables | |
path: foldcli* |