-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.71 KB
/
buildLibraries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This workflow will run build an AS project and publish the libraries to the github package registry
name: Build Libraries
on:
push:
branches: feature/runner
jobs:
depends:
runs-on: self-hosted
strategy:
matrix:
dependency: ${{fromJson('[{"path":"main"},{"repo":"loupeteam/AsGithubAction","ref":"main","path":"AsGithubAction"},{"repo":"loupeteam/ASPython", "ref":"feature/libraryRefs","path":"AsPython"}]')}}
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ matrix.dependency.repo }}
ref: ${{ matrix.dependency.ref }}
path: ${{ matrix.dependency.path }}
token: ${{ secrets.GA_PAT }} # `GH_PAT` is a secret that contains your PAT
buildandexport:
needs: [depends]
runs-on: self-hosted
permissions:
contents: read
packages: write
steps:
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: python.exe ./AsPython/CmdLineBuild.py ./main/example/AsProject/AsProject.apj -c Intel ARM -bm Rebuild --logLevel DEBUG
- run: python.exe ./AsPython/CmdLineExportLib.py ./main/example/AsProject/AsProject.apj -dest ./libs -c Intel ARM -wl vartools -l DEBUG -o -bm "None"
- uses: ./AsGithubAction
with:
token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: [buildandexport]
runs-on: self-hosted
strategy:
matrix:
packages: [vartools]
permissions:
contents: read
packages: write
steps:
- run: |
cd ./libs/${{ matrix.packages }}
lpm init -s -lib -nc
lpm publish -s -nc