Skip to content

add workflow

add workflow #2

name: Build and Upload .so File
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Build .so file
run: |
mkdir -p build
go build -buildmode=plugin -o build/custom_linters.so ./plugin/main.go
- name: Upload .so file
uses: actions/upload-artifact@v2
with:
name: custom_linters.so
path: build/custom_linters.so