Skip to content

Commit

Permalink
build bindings in one step
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
simonrw committed Dec 30, 2022
1 parent 89ef078 commit 24ecf3c
Showing 1 changed file with 5 additions and 47 deletions.
52 changes: 5 additions & 47 deletions .github/workflows/update-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

jobs:
generate-amd-bindings:
generate-bindings:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -17,7 +17,7 @@ jobs:
libcfitsio-dev \
pkg-config \
libssl-dev \
python3
gcc-multilib
- name: Install toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -30,9 +30,9 @@ jobs:
run: |
cargo install bindgen-cli
- name: Generate amd64 bindings
- name: Generate bindings
run: |
make -C fitsio-sys src/bindings_64.rs
make -C fitsio-sys all
- name: Create the pull request
uses: peter-evans/create-pull-request@v4.2.3
Expand All @@ -42,47 +42,5 @@ jobs:
title: Update bindgen static bindings
assignees: simonrw
base: main
commit-message: Update amd64 bindings
commit-message: Update bindings
token: ${{ secrets.PIPELINE_TOKEN }}

generate-arm-bindings:
needs: generate-amd-bindings
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1
with:
ref: update-bindings

- name: Install ubuntu dependencies
run: |
sudo apt-get update && \
sudo apt-get install --no-install-recommends -y \
libcfitsio-dev \
pkg-config \
libssl-dev \
gcc-multilib \
python3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install bindgen
run: |
cargo install bindgen-cli
- name: Generate amd64 bindings
run: |
make -C fitsio-sys src/bindings_32.rs
- name: Update the pull request
run: |
git config user.name Automated
git config user.email actions@users.noreply.github.com
git add -A
git commit -m "Update 32-bit bindings"
git push

0 comments on commit 24ecf3c

Please sign in to comment.