Skip to content

build(readme): run recur.exe on Windows #89

build(readme): run recur.exe on Windows

build(readme): run recur.exe on Windows #89

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
bsd:
runs-on: ${{ matrix.os.host }}
strategy:
matrix:
os:
- name: freebsd
architecture: x86-64
version: '14.1'
host: ubuntu-latest
- name: netbsd
architecture: x86-64
version: '10.0'
host: ubuntu-latest
- name: openbsd
architecture: x86-64
version: '7.5'
host: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run CI script on ${{ matrix.os.name }}
uses: cross-platform-actions/[email protected]
with:
operating_system: ${{ matrix.os.name }}
architecture: ${{ matrix.os.architecture }}
version: ${{ matrix.os.version }}
shell: bash
run: |
case "$(uname)" in
FreeBSD)
sudo pkg install -y go
;;
NetBSD)
sudo pkgin -y install go
for bin in /usr/pkg/bin/go1*; do
src=$bin
done
sudo ln -s "$src" /usr/pkg/bin/go
;;
OpenBSD)
sudo pkg_add -I go
;;
esac
PATH=~/go/bin:$PATH
go install github.com/go-task/task/v3/cmd/task@latest
task
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Task
run: |
go install github.com/go-task/task/v3/cmd/task@latest
echo ~/go/bin >> "$GITHUB_PATH"
- name: Build and test
run: |
task
mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install go
echo ~/go/bin >> "$GITHUB_PATH"
# Install manually to avoid the API limit.
- name: Install Task
run: |
go install github.com/go-task/task/v3/cmd/task@latest
- name: Build and test
run: |
task
windows:
runs-on: windows-latest
steps:
- name: 'Disable `autocrlf` in Git'
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v4
- name: Install Task
run: |
go install github.com/go-task/task/v3/cmd/task@latest
echo env:GOPATH
Add-Content -Path $env:GITHUB_PATH -Encoding utf8 -Value $env:GOPATH\bin
Get-Content -Path $env:GITHUB_PATH
- name: Build and test
run: |
task
- name: Upload Windows binary
uses: actions/upload-artifact@v4
with:
name: recur-windows-amd64
path: |
recur.exe