Skip to content

Update to 1.0

Update to 1.0 #8

Workflow file for this run

name: Build
on:
push:
pull_request:
types: [opened, synchronize, reopened]
release:
types: [published]
permissions:
contents: write # needed for release upload
jobs:
build:
name: Build against fooyin
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: Dependencies
run: |
pacman -Syu --noconfirm --needed \
base-devel \
cmake \
git \
ninja \
fooyin
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Configure
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: fooyin-plugin-libvgm
path: build/fyplugin_vgminput.so
if-no-files-found: error
attach:
name: Attach to release
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact
uses: actions/download-artifact@v7
with:
name: fooyin-plugin-libvgm
path: ./artifacts
- name: Upload artifact to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.release.tag_name }}
file: ./artifacts/fyplugin_vgminput.so
overwrite: true