Skip to content

Commit 30efa47

Browse files
committed
GitHub workflow for build WIP
1 parent ab43984 commit 30efa47

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- action
6+
# pull_request:
7+
defaults:
8+
run:
9+
shell: bash
10+
env:
11+
publisher: James Teh
12+
jobs:
13+
windows:
14+
runs-on: windows-latest
15+
steps:
16+
- id: setup
17+
name: setup
18+
run: |
19+
echo version=`date +%Y.%-m.%-d`.$((GITHUB_RUN_NUMBER + 2000)),${GITHUB_SHA:0:8} >> "$GITHUB_OUTPUT"
20+
pip install scons
21+
- uses: actions/checkout@v4
22+
with:
23+
submodules: true
24+
- name: build
25+
run: scons "publisher=$publisher" version=${{ steps.setup.outputs.version }}
26+
mac:
27+
runs-on: macos-latest
28+
steps:
29+
- uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: 8.4
32+
- id: setup
33+
name: setup
34+
run: |
35+
echo version=`date +%Y.%-m.%-d`.$((GITHUB_RUN_NUMBER + 2000)),${GITHUB_SHA:0:8} >> "$GITHUB_OUTPUT"
36+
pip install scons
37+
- uses: actions/checkout@v4
38+
with:
39+
submodules: true
40+
- name: build
41+
run: scons "publisher=$publisher" version=${{ steps.setup.outputs.version }}

0 commit comments

Comments
 (0)