diff --git a/.github/workflows/update-bindings.yml b/.github/workflows/update-bindings.yml index ba5bf47c..fdf10cf8 100644 --- a/.github/workflows/update-bindings.yml +++ b/.github/workflows/update-bindings.yml @@ -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/create-pull-request@v4.2.3 @@ -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