From ee0bf69a7d0af7315f8742b313d91569ca942b34 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 13:28:33 +0100 Subject: [PATCH] [generate bindings] --- .github/workflows/test.yml | 44 ++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d21053f9..21550213 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,28 +55,28 @@ jobs: # only one stable Rust toolchain per combination of a platform and # an R version (e.g. Windows and R-release) to emit bindings. - {os: windows-latest, r: 'release', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '43', emit-bindings: 'true'} - - {os: windows-latest, r: 'release', rust-version: 'nightly-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '43'} - - {os: windows-latest, r: 'devel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '43', emit-bindings: 'true'} - - {os: windows-latest, r: 'release', rust-version: 'stable-gnu', target: 'x86_64-pc-windows-gnu', rtools-version: '43'} - - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '42', emit-bindings: 'true'} + # - {os: windows-latest, r: 'release', rust-version: 'nightly-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '43'} + # - {os: windows-latest, r: 'devel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '43', emit-bindings: 'true'} + # - {os: windows-latest, r: 'release', rust-version: 'stable-gnu', target: 'x86_64-pc-windows-gnu', rtools-version: '43'} + # - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '42', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'nightly'} - - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'nightly'} + # - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} - - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} env: RSPM: ${{ matrix.config.rspm }} @@ -281,11 +281,13 @@ jobs: git config --local user.name "${GITHUB_ACTOR}" git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" git commit -m "Update bindings [skip ci]" - - name: Make the generated bindings PR to the PR - run: | - gh pr create --title "Add generated bindings" --body "Generated bindings as a result of: ${{ github.event.pull_request.number }}" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Push to PR branch + run: git push + # - name: Make the generated bindings PR to the PR + # run: | + # gh pr create --title "Add generated bindings" --body "Generated bindings as a result of: ${{ github.event.pull_request.number }}" + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch.