Use mruby-rapidyaml insted of mruby-yaml #249
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
- name: Install dependencies | |
run: bundle install | |
- name: Run rubocop | |
run: bundle exec rubocop | |
build: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os-arch: [linux-amd64, darwin-arm64, windows-amd64] | |
include: | |
- os-arch: windows-amd64 | |
suffix: .exe | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: build | |
run: rake build:${{ matrix.os-arch }} | |
- name: Upload test binary (${{ matrix.os-arch }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rf-${{ github.sha }}-${{ matrix.os-arch }} | |
path: build/${{ matrix.os-arch }}/bin/rf${{ matrix.suffix }} | |
test: | |
needs: build | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest, macos-14, windows-latest] | |
include: | |
- runs-on: ubuntu-latest | |
os-arch: linux-amd64 | |
- runs-on: macos-14 | |
os-arch: darwin-arm64 | |
- runs-on: windows-latest | |
os-arch: windows-amd64 | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: rf-${{ github.sha }}-${{ matrix.os-arch }} | |
path: build/bin | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install | |
- name: Grant execute permission | |
if: ${{ ! contains(matrix.runs-on, 'windows') }} | |
run: chmod +x build/bin/rf | |
- name: Run test | |
run: bundle exec rake spec |