Update gr/ffi functions #438
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: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: OS ${{ matrix.os }} Ruby ${{ matrix.ruby }} GR ${{ matrix.gr }} | |
strategy: | |
fail-fast: false | |
matrix: | |
gr: ["0.72.11", "0.73.6", "system"] | |
os: ["ubuntu", "macos", "windows"] | |
ruby: ["3.1", "3.2", "3.3"] | |
exclude: | |
- { os: windows, gr: "0.72.11" } | |
- { os: windows, gr: "0.73.6" } | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Get official GR binary (ubuntu) | |
if: ${{ matrix.gr != 'system' && matrix.os == 'ubuntu' }} | |
run: | | |
wget https://github.com/sciapp/gr/releases/download/v${{ matrix.gr }}/gr-${{ matrix.gr }}-Ubuntu-x86_64.tar.gz | |
tar -xvf gr-${{ matrix.gr }}-Ubuntu-x86_64.tar.gz | |
- name: Get official GR binary (macos) | |
if: ${{ matrix.gr != 'system' && matrix.os == 'macos' }} | |
run: | | |
wget https://github.com/sciapp/gr/releases/download/v${{ matrix.gr }}/gr-${{ matrix.gr }}-Darwin-aarch64.tar.gz | |
tar -xvf gr-${{ matrix.gr }}-Darwin-aarch64.tar.gz | |
- name: Setup OBS binary (ubuntu) | |
if: ${{ matrix.gr == 'system' && matrix.os == 'ubuntu' }} | |
run: | | |
echo 'deb http://download.opensuse.org/repositories/science:/gr-framework/xUbuntu_20.04/ /' | | |
sudo tee /etc/apt/sources.list.d/science:gr-framework.list | |
curl -fsSL https://download.opensuse.org/repositories/science:gr-framework/xUbuntu_20.04/Release.key | | |
gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/science_gr-framework.gpg > /dev/null | |
sudo apt update -yq && sudo apt upgrade -yq | |
sudo apt-get install -y gr | |
- name: Set up Homebrew (macos) | |
if: ${{ matrix.gr == 'system' && matrix.os == 'macos' }} | |
run: | | |
brew update | |
brew install libgr | |
- name: Test (official binary) | |
if: matrix.gr != 'system' | |
env: | |
GRDIR: gr | |
GKS_WSTYPE: 100 | |
run: bundle exec rake test | |
- name: Test (packages) | |
if: ${{ matrix.gr == 'system' && matrix.os != 'ubuntu' }} | |
env: | |
QT_QPA_PLATFORM: offscreen | |
run: bundle exec rake test | |
- name: Test (packages) (ubuntu) | |
if: ${{ matrix.gr == 'system' && matrix.os == 'ubuntu' }} | |
env: | |
QT_QPA_PLATFORM: offscreen | |
GRDIR: /usr/gr | |
run: bundle exec rake test |