mirror of
https://github.com/nikdoof/openlens-extensions.git
synced 2025-12-17 11:49:21 +00:00
Matrix build the plugins
This commit is contained in:
46
.github/workflows/build.yml
vendored
46
.github/workflows/build.yml
vendored
@@ -5,19 +5,39 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
|
find-extensions:
|
||||||
|
name: Find Extensions
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
folders: ${{ steps.jobs.outputs.folders }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- id: extensions
|
||||||
|
uses: philips-labs/list-folders-action@v1
|
||||||
|
with:
|
||||||
|
path: ./src
|
||||||
|
|
||||||
build-extensions:
|
build-extensions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- find-jobs
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ${{ matrix.folder }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
folder: ${{ fromJson(needs.find-jobs.outputs.folders )}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
- name: Run 'make build'
|
cache: npm
|
||||||
run: make build
|
- name: Run 'make build'
|
||||||
shell: bash
|
run: npm run --prefix build ../dist
|
||||||
- name: Upload plugins
|
shell: bash
|
||||||
uses: actions/upload-artifact@v3
|
- name: Upload plugins
|
||||||
with:
|
uses: actions/upload-artifact@v3
|
||||||
name: dist-without-markdown
|
with:
|
||||||
path: |
|
path: |
|
||||||
dist/*
|
dist/${{ matrix.folder }}*.tgz
|
||||||
Reference in New Issue
Block a user