diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b989f31 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: build + +on: + push: + branches: [ 'master' ] + +jobs: + build: + name: build + runs-on: ubuntu-24.04 + permissions: + contents: write + packages: write + steps: + - uses: actions/checkout@v4 + + - name: Build + run: ./build.sh + + - uses: actions/upload-artifact@v4 + with: + name: natives + path: *oc2rnet-* diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..2402534 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: publish + +on: + release: + types: [published] + +jobs: + build: + name: publish + runs-on: ubuntu-24.04 + permissions: + contents: write + packages: write + steps: + - uses: actions/checkout@v4 + + - name: Build + run: ./build.sh + + - name: Add Artifacts to Github Release + uses: alexellis/upload-assets@0.4.1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + asset_paths: '["./*.dll", "./*.so", "./*.dylib"]'