File tree Expand file tree Collapse file tree 2 files changed +100
-0
lines changed
Expand file tree Collapse file tree 2 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & Test
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+ tags :
11+ - " v*.*.*"
12+
13+ jobs :
14+ macos :
15+ runs-on : macos-latest
16+ strategy :
17+ matrix :
18+ target : [x86_64-macos, aarch64-macos]
19+ optimize : [ReleaseSmall, Debug]
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : goto-bus-stop/setup-zig@v2
23+ - name : Build
24+ run : |
25+ zig build -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }}
26+ - name : Test
27+ run : |
28+ zig build test
29+ windows :
30+ runs-on : windows-latest
31+ strategy :
32+ matrix :
33+ target : [x86_64-windows, aarch64-windows]
34+ optimize : [ReleaseSmall, Debug]
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : goto-bus-stop/setup-zig@v2
38+ - name : Build
39+ run : |
40+ zig build -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }}
41+ - name : Test
42+ run : |
43+ zig build test
44+ linux :
45+ runs-on : ubuntu-latest
46+ strategy :
47+ matrix :
48+ target : [x86_64-linux, aarch64-linux, riscv64-linux]
49+ optimize : [ReleaseSmall, Debug]
50+ steps :
51+ - uses : actions/checkout@v4
52+ - uses : goto-bus-stop/setup-zig@v2
53+ - name : Build
54+ run : |
55+ zig build -Dtarget=${{ matrix.target }} -Doptimize=${{ matrix.optimize }}
56+ - name : Test
57+ run : |
58+ zig build test
Original file line number Diff line number Diff line change 1+ name : Update Phantom UI
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * *'
6+ workflow_dispatch : {}
7+
8+ jobs :
9+ update-phantom :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ path : main
15+ - uses : actions/checkout@v4
16+ with :
17+ repository : PhantomUIx/core
18+ path : phantom-core
19+ - uses : goto-bus-stop/setup-zig@v2
20+ - name : Update Phantom UI
21+ run : |
22+ export PHANTOM_SHA=$(git -C phantom-core rev-parse HEAD)
23+ pushd main
24+ git switch -c update-phantom/$PHANTOM_SHA
25+ zig fetch --save=phantom https://github.com/PhantomUIx/core/archive/$PHANTOM_SHA.tar.gz
26+ git config user.name "GitHub Actions Bot"
27+ git config user.email "<>"
28+ if ! git diff-index --quiet HEAD --; then
29+ git add build.zig.zon
30+ git commit build.zig.zon -m "chore: update core to $PHANTOM_SHA"
31+ export HAS_CHANGES=yes
32+ else
33+ export HAS_CHANGES=no
34+ fi
35+ popd
36+ - name : Open PR
37+ uses : peter-evans/create-pull-request@v5
38+ if : env.HAS_CHANGES == 'yes'
39+ with :
40+ title : " Update Phantom UI core to ${{ env.PHANTOM_SHA }}"
41+ branch : update-phantom/${{ env.PHANTOM_SHA }}
42+ path : main
You can’t perform that action at this time.
0 commit comments