workflows

This commit is contained in:
Un1q32
2025-04-20 19:38:57 -04:00
parent 719f243b1f
commit 2501e06f33
2 changed files with 48 additions and 0 deletions

23
.github/workflows/build.yml vendored Normal file
View File

@@ -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-*

25
.github/workflows/publish.yml vendored Normal file
View File

@@ -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"]'