Skip to content

Commit 3139d48

Browse files
committed
build bindings in one step
[ci skip]
1 parent 89ef078 commit 3139d48

File tree

1 file changed

+6
-48
lines changed

1 file changed

+6
-48
lines changed

.github/workflows/update-bindings.yml

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
generate-amd-bindings:
7+
generate-bindings:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout sources
@@ -17,7 +17,7 @@ jobs:
1717
libcfitsio-dev \
1818
pkg-config \
1919
libssl-dev \
20-
python3
20+
gcc-multilib
2121
2222
- name: Install toolchain
2323
uses: actions-rs/toolchain@v1
@@ -28,11 +28,11 @@ jobs:
2828

2929
- name: Install bindgen
3030
run: |
31-
cargo install bindgen-cli
31+
cargo install bindgen-cli --locked
3232
33-
- name: Generate amd64 bindings
33+
- name: Generate bindings
3434
run: |
35-
make -C fitsio-sys src/bindings_64.rs
35+
make -C fitsio-sys all
3636
3737
- name: Create the pull request
3838
uses: peter-evans/create-pull-request@v4.2.3
@@ -42,47 +42,5 @@ jobs:
4242
title: Update bindgen static bindings
4343
assignees: simonrw
4444
base: main
45-
commit-message: Update amd64 bindings
45+
commit-message: Update bindings
4646
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

Comments
 (0)