Fix issues with Bundler::Shared_Helpers #34
Workflow file for this run
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
name: build-and-test | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
paths-ignore: | |
- '**.adoc' | |
- '**.txt' | |
pull_request: | |
paths-ignore: | |
- '**.adoc' | |
- '**.txt' | |
workflow_dispatch: | |
concurrency: | |
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}' | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.windows }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ '2.7', '3.0', '3.1', '3.2' ] | |
windows: [ 'windows-2019', 'windows-2022' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: false | |
- name: Add codesign to path for Windows 2019 | |
if: ${{ matrix.windows == 'windows-2019' }} | |
shell: powershell | |
run: | | |
echo "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Add codesign to path for Windows 2022 | |
if: ${{ matrix.windows == 'windows-2022' }} | |
shell: powershell | |
run: | | |
echo "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.17763.0\x86" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Build and test with Rake | |
run: | | |
bundle install | |
rake test | |
package: | |
runs-on: windows-latest | |
needs: [ build ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: false | |
- name: Package gem | |
run: | | |
bundle install | |
rake build | |
- name: Install gem | |
run: rake install | |
- name: Test installed gem | |
run: | | |
aibika test/fixtures/helloworld/helloworld.rb | |
./helloworld.exe | |
# ----- Release ----- | |
release: | |
name: Release gem | |
needs: [ package ] | |
runs-on: windows-latest | |
if: contains(github.ref, 'refs/tags/v') && !contains(github.ref, 'pre') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- uses: actions-mn/gem-release@main | |
with: | |
api-key: ${{ secrets.TEBAKO_CI_RUBYGEMS_API_KEY }} | |
release-command: bundle exec rake release |