Skip to content

Commit dae1cd5

Browse files
committed
misc: add building in the CI
1 parent e3950d5 commit dae1cd5

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/rattler-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- "pixi-build-cmake-v[0-9]+.[0-9]+.[0-9]+"
66
- "pixi-build-python-v[0-9]+.[0-9]+.[0-9]+"
77
- "pixi-build-rattler-build-v[0-9]+.[0-9]+.[0-9]+"
8+
- "pixi-build-rust-v[0-9]+.[0-9]+.[0-9]+"
89
# Run everything but publish on PRs
910
pull_request:
1011

recipe/pixi_build_rust.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package:
2+
name: pixi-build-rust
3+
version: "${{ env.get('PIXI_BUILD_RUST_VERSION', default='0.1.0dev') }}"
4+
5+
source:
6+
path: ..
7+
8+
requirements:
9+
build:
10+
- ${{ compiler("rust") }}
11+
host:
12+
- xz >=5.0, <6.0
13+
- if: unix
14+
then: openssl
15+
16+
build:
17+
script:
18+
- if: unix
19+
then:
20+
- export OPENSSL_DIR="$PREFIX"
21+
- cargo install --locked --root $PREFIX --path crates/pixi-build-rust --no-track
22+
else:
23+
- cargo install --locked --root %PREFIX% --path crates/pixi-build-rust --no-track
24+
files:
25+
- bin/pixi-build-rust
26+
- bin/pixi-build-rust.exe
27+
28+
tests:
29+
- script: pixi-build-rust --help

0 commit comments

Comments
 (0)