File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test automatic selection of deps
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ build :
14+ name : Build & Test
15+ runs-on : ubuntu-24.04
16+
17+ steps :
18+
19+ # Code of this repo
20+ - name : Checkout this repo
21+ uses : actions/checkout@v4
22+ with :
23+ path : root
24+
25+ - name : Set up Python
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version : ' 3.11'
29+
30+ - name : Install pallet-patcher from dev branch
31+ run : |
32+ pip install git+https://github.com/cottsay/pallet-patcher.git@blast545/smarter_pallet_patcher
33+ pallet-patcher -h
34+ pip freeze
35+
36+ - name : Install colcon-cargo from this branch
37+ run : |
38+ cd $GITHUB_WORKSPACE/root
39+ pip install .
40+
41+ - name : Install Rust toolchain
42+ uses : dtolnay/rust-toolchain@stable
43+
44+ - name : Install some Rust system crates
45+ run : |
46+ sudo apt-get install librust-serde-dev librust-tokio-dev librust-crc32fast-dev
47+
48+ - name : colcon build example project with a tokio crate available in workspace_ws/deps
49+ run : |
50+ ls $GITHUB_WORKSPACE/root/
51+ cd $GITHUB_WORKSPACE/root/test/pallet_patcher_ws/
52+ ls
53+ colcon --log-level debug build --event-handlers console_direct+
54+
55+ - name : Take a look to our Cargo.lock file for hello_world2
56+ run : |
57+ ls $GITHUB_WORKSPACE/root/test/pallet_patcher_ws/
58+ ls $GITHUB_WORKSPACE/root/test/pallet_patcher_ws/hello_world2/
59+ cat $GITHUB_WORKSPACE/root/test/pallet_patcher_ws/hello_world2/Cargo.lock
You can’t perform that action at this time.
0 commit comments