diff --git a/.github/workflows/build_and_upload.yml b/.github/workflows/build_and_upload.yml new file mode 100644 index 0000000..b0ad1c8 --- /dev/null +++ b/.github/workflows/build_and_upload.yml @@ -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