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

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
toshiki-otaka committed Jun 3, 2024
1 parent 2dd32ac commit d64e396
Showing 1 changed file with 31 additions and 0 deletions.
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: plugin.so
path: build/plugin.so

0 comments on commit d64e396

Please sign in to comment.