Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

refactor project

refactor project #24

Workflow file for this run

name: build
on:
push:
branches:
- main
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ["1.20"]
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -ldflags "-s -w" -trimpath ./cmd/sf
- name: Upload artifact
uses: actions/upload-artifact@v3
if: success()
with:
name: ${{ matrix.os }}
if-no-files-found: ignore
path: |
sf.exe
sf