-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci skip]
- Loading branch information
Showing
1 changed file
with
6 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
generate-amd-bindings: | ||
generate-bindings: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
|
@@ -17,7 +17,7 @@ jobs: | |
libcfitsio-dev \ | ||
pkg-config \ | ||
libssl-dev \ | ||
python3 | ||
gcc-multilib | ||
- name: Install toolchain | ||
uses: actions-rs/toolchain@v1 | ||
|
@@ -28,11 +28,11 @@ jobs: | |
|
||
- name: Install bindgen | ||
run: | | ||
cargo install bindgen-cli | ||
cargo install bindgen-cli --locked | ||
- 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/[email protected] | ||
|
@@ -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 [email protected] | ||
git add -A | ||
git commit -m "Update 32-bit bindings" | ||
git push |