Skip to content

Commit 8c25684

Browse files
authored
Create build.yml
0 parents  commit 8c25684

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build (Windows / macOS / Linux)
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [windows-latest, ubuntu-latest, macos-latest, macos-15-intel]
12+
13+
runs-on: ${{ matrix.os }}
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: Install Conan
22+
uses: conan-io/setup-conan@v1
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.x"
28+
29+
- name: Install Python requirements
30+
run: |
31+
python -m pip install --upgrade pip
32+
python -m pip install -r scripts/go/requirements.txt
33+
34+
- name: Build project
35+
run: python scripts/go/main.py -y
36+
37+
- name: Package build
38+
run: python scripts/project_packager.py package
39+
40+
- name: Find zip file
41+
id: zip
42+
shell: bash
43+
run: |
44+
python scripts/project_packager.py gha_zip_file_name >> $GITHUB_OUTPUT
45+
46+
- name: Upload artifact
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: ${{ steps.zip.outputs.zip_file }}
50+
path: ${{ steps.zip.outputs.zip_file }}

0 commit comments

Comments
 (0)