Repository navigation
87 lines (71 loc) · 2.2 KB
/
Copy pathci.yml
File metadata and controls
87 lines (71 loc) · 2.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-all:
name: Polyglot Integration Suite (All 7 Languages)
runs-on: ubuntu-latest
steps:
- name: Checkout PolyXML Core Compiler
uses: actions/checkout@v4
with:
repository: polyxml/PolyXML
path: PolyXML
- name: Checkout Transit Examples
uses: actions/checkout@v4
with:
path: polyxml-transit-examples
- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Verify Rust Code Formatting
working-directory: polyxml-transit-examples
run: cargo fmt --manifest-path examples/rust/Cargo.toml -- --check
- name: Set up Go 1.22+
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set up Java 22
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '22'
- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Set up .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install System Build Tools (CMake & Ninja)
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build g++
- name: Build PolyXML Core CLI & Python Wheels
working-directory: PolyXML
run: |
cargo build -p polyxml-cli --release
python3 -m venv .venv
. .venv/bin/activate
pip install maturin
maturin develop --manifest-path crates/polyxml-python/Cargo.toml
- name: Install Node dependencies
working-directory: polyxml-transit-examples
run: |
npm install
- name: Add PolyXML CLI to PATH
run: |
echo "$(pwd)/PolyXML/target/release" >> $GITHUB_PATH
- name: Execute Full Polyglot Test Suite (run_all.sh)
working-directory: polyxml-transit-examples
run: |
./scripts/run_all.sh