Skip to content

ci: Fix testing if an optional executable isn't there #62

ci: Fix testing if an optional executable isn't there

ci: Fix testing if an optional executable isn't there #62

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest"]
goarch: [amd64, arm64]
goos: [darwin, windows, linux]
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 ${{ matrix.goos }} ${{ matrix.goarch }}
env:
GOARCH: ${{ matrix.goarch }}
GOOS: ${{ matrix.goos }}
run: go build -v -o foldcli-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }} .
- name: Upload Build Results
uses: actions/upload-artifact@v3
if: always()
with:
name: foldcli-${{ matrix.goos }}-${{ matrix.goarch }}
path: foldcli*