-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (87 loc) · 2.54 KB
/
Copy pathbuild.yml
File metadata and controls
100 lines (87 loc) · 2.54 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Build packages
on:
push:
jobs:
rubygems:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: build/ruby
steps:
- uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4.7'
- name: Install gems
run: bundle install
- name: Generate ruby
run: bundle exec rake generate_ruby:all
- name: Run loading tests
run: bundle exec rspec spec/tucana_spec.rb
- name: Run tests
run: bundle exec rspec
crates:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: build/rust
steps:
- uses: actions/checkout@v7
- name: Setup rust
run: rustup update --no-self-update stable
- name: Install protoc
run: curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.0-rc1/protoc-28.0-rc-1-linux-x86_64.zip && unzip protoc-28.0-rc-1-linux-x86_64.zip -d ${{ runner.temp }}/proto && chmod +x ${{ runner.temp }}/proto/bin/protoc && ${{ runner.temp }}/proto/bin/protoc --version
- name: Build crate
run: PATH=${{ runner.temp }}/proto/bin:$PATH cargo build
env:
RUST_BACKTRACE: 'full'
- name: Test De/Serialization from/to json
run: PATH=${{ runner.temp }}/proto/bin:$PATH cargo test
env:
RUST_BACKTRACE: 'full'
- name: Package crate
run: cargo package --allow-dirty
npm:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: build/ts
steps:
- uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: '24.14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Generate ts
run: npm run generate
- name: Compile helpers
run: npm run build
pypi:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: build/python
steps:
- uses: actions/checkout@v7
- name: Set up uv
uses: astral-sh/setup-uv@v8.1.0
with:
working-directory: 'build/python'
version-file: '.tool-versions'
enable-cache: false
- name: Install dependencies
run: uv sync
- name: Generate python
run: uv run scripts/generate.py
- name: Run tests
run: uv run pytest
- name: Build distribution
run: uv build