Commit 7941a12 1 parent 8014faf commit 7941a12 Copy full SHA for 7941a12
File tree 3 files changed +20
-2
lines changed
3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: build
2
2
3
3
on : push
4
4
5
+ env :
6
+ ENABLE_PYO3 : 1
7
+
5
8
jobs :
6
9
build :
7
10
strategy :
13
16
include :
14
17
- target : x86_64-unknown-linux-gnu
15
18
cross : " "
19
+ image : " vtavernier/cross:x86_64-bullseye"
16
20
- target : arm-unknown-linux-gnueabihf
17
21
cross : arm-linux-gnueabihf-
22
+ image : " vtavernier/cross:raspberrypi"
18
23
19
24
runs-on : ubuntu-20.04
20
25
48
53
args : --release --target=${{ matrix.target }}
49
54
50
55
- name : Strip resulting binary
51
- run : docker run -v ${{ github.workspace }}:/src rustembedded/cross: ${{ matrix.target }} ${{ matrix.cross }}strip /src/target/${{ matrix.target }}/release/hyperiond
56
+ run : docker run -v ${{ github.workspace }}:/src ${{ matrix.image }} ${{ matrix.cross }}strip /src/target/${{ matrix.target }}/release/hyperiond
52
57
53
58
- name : Prepare release
54
59
run : |
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags : ['v*']
6
6
7
+ env :
8
+ ENABLE_PYO3 : 1
9
+
7
10
jobs :
8
11
release :
9
12
strategy :
15
18
include :
16
19
- target : x86_64-unknown-linux-gnu
17
20
cross : " "
21
+ image : " vtavernier/cross:x86_64-bullseye"
18
22
- target : arm-unknown-linux-gnueabihf
19
23
cross : arm-linux-gnueabihf-
24
+ image : " vtavernier/cross:raspberrypi"
20
25
21
26
runs-on : ubuntu-20.04
22
27
42
47
args : --release --target=${{ matrix.target }}
43
48
44
49
- name : Strip resulting binary
45
- run : docker run -v ${{ github.workspace }}:/src rustembedded/cross: ${{ matrix.target }} ${{ matrix.cross }}strip /src/target/${{ matrix.target }}/release/hyperiond
50
+ run : docker run -v ${{ github.workspace }}:/src ${{ matrix.image }} ${{ matrix.cross }}strip /src/target/${{ matrix.target }}/release/hyperiond
46
51
47
52
- name : Prepare release
48
53
run : |
Original file line number Diff line number Diff line change
1
+ [build .env ]
2
+ passthrough = [" ENABLE_PYO3" ]
3
+
4
+ [target .x86_64-unknown-linux-gnu ]
5
+ image = " vtavernier/cross:x86_64-bullseye"
6
+
7
+ [target .arm-unknown-linux-gnueabihf ]
8
+ image = " vtavernier/cross:raspberrypi"
You can’t perform that action at this time.
0 commit comments