mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2025-02-23 05:15:07 +00:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: build addon
|
|
|
|
on:
|
|
push:
|
|
tags: ["*"]
|
|
# To build on main/master branch, uncomment the following line:
|
|
# branches: [ main , master ]
|
|
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.11']
|
|
os: [ubuntu-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up PDM
|
|
uses: pdm-project/setup-pdm@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pdm sync -d -G build
|
|
|
|
- name: building addon
|
|
run: pdm run scons
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: packaged_addon
|
|
path: ./*.nvda-addon
|
|
|
|
upload_release:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
needs: ["build"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: download releases files
|
|
uses: actions/download-artifact@v4.1.7
|
|
- name: Display structure of downloaded files
|
|
run: ls -R
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: packaged_addon/*.nvda-addon
|
|
fail_on_unmatched_files: true
|
|
prerelease: ${{ contains(github.ref, '-') }}
|