File tree Expand file tree Collapse file tree 6 files changed +364
-230
lines changed
component-model/examples/example-host Expand file tree Collapse file tree 6 files changed +364
-230
lines changed Original file line number Diff line number Diff line change 1+ name : rust
2+
3+ on :
4+ merge_group :
5+ push :
6+ branches :
7+ - main
8+
9+ pull_request :
10+ branches :
11+ - main
12+
13+ defaults :
14+ run :
15+ shell : bash
16+
17+ concurrency :
18+ group : ${{ github.workflow }}-${{ github.ref }}
19+ cancel-in-progress : true
20+
21+ jobs :
22+ build :
23+ runs-on : ubuntu-latest
24+ strategy :
25+ matrix :
26+ projects :
27+ - folder : component-model/examples/example-host
28+ - folder : component-model/examples/tutorial/adder
29+ type : component
30+ - folder : component-model/examples/tutorial/calculator
31+ type : component
32+ - folder : component-model/examples/tutorial/command
33+ type : component
34+ steps :
35+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
37+ - name : Install Rust
38+ run : rustup update stable --no-self-update
39+
40+ - uses : taiki-e/cache-cargo-install-action@5c9abe9a3f79d831011df7c47177debbeb320405 # v2.1.2
41+ with :
42+ tool : cargo-component
43+
44+ - uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
45+ with :
46+ shared-key : ${{ hashFiles('${{ matrix.projects.folder }}/Cargo.lock') }}
47+
48+ - name : Cargo bulid the package
49+ working-directory : ${{ matrix.projects.folder }}
50+ if : ${{ matrix.projects.type != 'component' }}
51+ run : cargo build
52+
53+ - name : Cargo component build
54+ working-directory : ${{ matrix.projects.folder }}
55+ if : ${{ matrix.projects.type == 'component' }}
56+ run : cargo component build
You can’t perform that action at this time.
0 commit comments