4
4
workflow_dispatch :
5
5
6
6
jobs :
7
- generate-amd- bindings :
7
+ generate-bindings :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Checkout sources
17
17
libcfitsio-dev \
18
18
pkg-config \
19
19
libssl-dev \
20
- python3
20
+ gcc-multilib
21
21
22
22
- name : Install toolchain
23
23
uses : actions-rs/toolchain@v1
@@ -28,11 +28,11 @@ jobs:
28
28
29
29
- name : Install bindgen
30
30
run : |
31
- cargo install bindgen-cli
31
+ cargo install bindgen-cli --locked
32
32
33
- - name : Generate amd64 bindings
33
+ - name : Generate bindings
34
34
run : |
35
- make -C fitsio-sys src/bindings_64.rs
35
+ make -C fitsio-sys all
36
36
37
37
- name : Create the pull request
38
38
uses : peter-evans/create-pull-request@v4.2.3
42
42
title : Update bindgen static bindings
43
43
assignees : simonrw
44
44
base : main
45
- commit-message : Update amd64 bindings
45
+ commit-message : Update bindings
46
46
token : ${{ secrets.PIPELINE_TOKEN }}
47
-
48
- generate-arm-bindings :
49
- needs : generate-amd-bindings
50
- runs-on : ubuntu-latest
51
- steps :
52
- - name : Checkout sources
53
- uses : actions/checkout@v1
54
- with :
55
- ref : update-bindings
56
-
57
- - name : Install ubuntu dependencies
58
- run : |
59
- sudo apt-get update && \
60
- sudo apt-get install --no-install-recommends -y \
61
- libcfitsio-dev \
62
- pkg-config \
63
- libssl-dev \
64
- gcc-multilib \
65
- python3
66
-
67
- - name : Install toolchain
68
- uses : actions-rs/toolchain@v1
69
- with :
70
- toolchain : stable
71
- profile : minimal
72
- override : true
73
-
74
- - name : Install bindgen
75
- run : |
76
- cargo install bindgen-cli
77
-
78
- - name : Generate amd64 bindings
79
- run : |
80
- make -C fitsio-sys src/bindings_32.rs
81
-
82
- - name : Update the pull request
83
- run : |
84
- git config user.name Automated
85
- git config user.email actions@users.noreply.github.com
86
- git add -A
87
- git commit -m "Update 32-bit bindings"
88
- git push
0 commit comments