Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

add workflow #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
Loading