File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed
Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build code0-flow crate
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ crates :
8+ runs-on : ubuntu-latest
9+
10+ defaults :
11+ run :
12+ shell : bash
13+ working-directory : build/rust
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Setup rust
18+ run : rustup update --no-self-update stable
19+ - name : Install protoc
20+ 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
21+ - name : Build crate
22+ run : PATH=${{ runner.temp }}/proto/bin:$PATH cargo build
23+ env :
24+ RUST_BACKTRACE : ' full'
25+ - name : Test De/Serialization from/to json
26+ run : PATH=${{ runner.temp }}/proto/bin:$PATH cargo test --features all
27+ env :
28+ RUST_BACKTRACE : ' full'
29+ - name : Package crate
30+ run : cargo package --allow-dirty
Original file line number Diff line number Diff line change 1+ name : Publish code0-flow crate
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ crates :
10+ runs-on : ubuntu-latest
11+
12+ environment : packages
13+
14+ defaults :
15+ run :
16+ shell : bash
17+ working-directory : build/rust
18+
19+ steps :
20+ # Set up
21+ - uses : actions/checkout@v4
22+ - name : Setup rust
23+ run : rustup update --no-self-update stable
24+ - name : Install protoc
25+ 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
26+ - name : Set version
27+ run : sed -i "s/version = \"0.0.0\"/version = \"${{ github.ref_name }}\"/" Cargo.toml
28+ - name : Cargo Login
29+ run : cargo login ${{secrets.CARGO_REGISTRY_TOKEN}}
30+ - name : Build crate
31+ run : PATH=${{ runner.temp }}/proto/bin:$PATH cargo build
32+ env :
33+ RUST_BACKTRACE : ' full'
34+
35+ # Release
36+ - name : Publish crate
37+ run : cargo publish --allow-dirty
You can’t perform that action at this time.
0 commit comments