mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2025-02-22 21:05:07 +00:00
upd build_addon workflow
This commit is contained in:
parent
3aab5922ab
commit
2d194e8e67
30
.github/workflows/build_addon.yml
vendored
30
.github/workflows/build_addon.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: build addon
|
name: Build Addon
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["*"]
|
tags: ["*"]
|
||||||
# To build on main/master branch, uncomment the following line:
|
|
||||||
# branches: [ main , master ]
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, master ]
|
branches: [ main, master ]
|
||||||
@ -13,28 +11,27 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version: ['3.11']
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up PDM
|
- name: Set up PDM
|
||||||
uses: pdm-project/setup-pdm@v4
|
uses: pdm-project/setup-pdm@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pdm sync -d -G build
|
pdm sync -d -G build
|
||||||
|
|
||||||
- name: building addon
|
- name: Build addon
|
||||||
run: pdm run scons
|
run: pdm run scons
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- name: Upload build artifacts
|
||||||
|
if: success()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: packaged_addon
|
name: packaged_addon
|
||||||
path: ./*.nvda-addon
|
path: ./*.nvda-addon
|
||||||
@ -42,15 +39,16 @@ jobs:
|
|||||||
upload_release:
|
upload_release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
needs: ["build"]
|
needs: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Download releases files
|
||||||
- name: download releases files
|
|
||||||
uses: actions/download-artifact@v4.1.7
|
uses: actions/download-artifact@v4.1.7
|
||||||
with:
|
with:
|
||||||
name: packaged_addon
|
name: packaged_addon
|
||||||
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R
|
run: tree
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
Loading…
Reference in New Issue
Block a user