Repository navigation
44 lines (44 loc) · 1.67 KB
/
Copy pathsdk.yml
File metadata and controls
44 lines (44 loc) · 1.67 KB
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
name: Build and verify shared C/C++ SDK
on:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: shared-sdk-release
cancel-in-progress: false
jobs:
build:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: '3.12'
- name: Install host build tools and fixed Rust bootstrap
run: |
sudo apt-get update
sudo apt-get install -y cmake make gcc g++ git perl patch dpkg-dev xz-utils autoconf automake texinfo libtool pkg-config
rustup toolchain install nightly-2026-05-14 --profile minimal --component rust-src
- run: python3 -m unittest discover -s sdk/tests -v
- name: Build and verify source-pinned target SDK
run: python3 sdk/build.py build --jobs 4
- name: Verify private compiler helpers and strict shared imports
env:
MOCHIOS_TEST_SDK: ${{ github.workspace }}/out/shared-sdk/sdk
run: python3 -m unittest discover -s sdk/tests -p test_compiler_helpers.py -v
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: shared-sdk
path: out/shared-sdk/releases
if-no-files-found: error
retention-days: 14
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: shared-sdk-build-logs
path: out/shared-sdk/logs
retention-days: 14