Consider gems under platform: :windows filter in Gemfile when running on Windows with ARM architecture
#12309
Workflow file for this run
This file contains hidden or 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
| name: jruby-bundler | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ci-${{ github.ref }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: # added using https://github.com/step-security/secure-workflows | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| jruby_bundler: | |
| name: Bundler on JRuby (${{ matrix.os.name }}) | |
| runs-on: ${{ matrix.os.value }} | |
| env: | |
| RGV: .. | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - { name: Ubuntu, value: ubuntu-24.04 } | |
| - { name: Windows, value: windows-2022 } | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Setup ruby | |
| uses: ruby/setup-ruby@28c4deda893d5a96a6b2d958c5b47fc18d65c9d3 # v1.213.0 | |
| with: | |
| ruby-version: jruby-9.4.9.0 | |
| bundler: none | |
| - name: Setup java | |
| uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 | |
| with: | |
| distribution: temurin | |
| java-version: 19.0.2 | |
| if: matrix.os.name != 'Ubuntu' | |
| - name: Prepare dependencies | |
| run: | | |
| bin/rake spec:parallel_deps | |
| - name: Run Test | |
| run: | | |
| bin/parallel_rspec --tag jruby_only --tag jruby | |
| working-directory: ./bundler | |
| if: matrix.os.name == 'Ubuntu' | |
| - name: Install local bundler | |
| run: | | |
| bin/rake bundler:install:local | |
| if: matrix.os.name == 'Ubuntu' | |
| - name: Run a warbler project | |
| run: | | |
| cd bundler/spec/realworld/fixtures/warbler | |
| bundle install | |
| bundle exec warble | |
| java -jar warbler.jar | |
| if: matrix.os.name == 'Ubuntu' |