Sha256: 3e928afb3340ff77ff9774a25daecea64dbd219547d53e49b631911b626b31ac

Contents?: true

Size: 1.75 KB

Versions: 4

Compression:

Stored size: 1.75 KB

Contents

name: CI

on: [push, pull_request]

jobs:
  job_test_gem:
    name: Test in source tree
    strategy:
      fail-fast: false
      matrix:
        include:
          - os: windows
            ruby: "head"
          - os: windows
            ruby: "2.5"
          - os: ubuntu
            ruby: "head"
          - os: ubuntu
            ruby: "3.2"
          - os: ubuntu
            ruby: "2.5"
          - os: macos
            ruby: "head"

    runs-on: ${{ matrix.os }}-latest

    steps:
      - uses: actions/checkout@v3

      - uses: ruby/setup-ruby-pkgs@v1
        with:
          ruby-version: ${{ matrix.ruby }}      # passed to ruby/setup-ruby
          apt-get: "xpra xserver-xorg-video-dummy libxrandr-dev libfox-1.6-dev libfxscintilla-dev swig" # Ubuntu
          brew: "fox swig xquartz"     # macOS
          mingw: "fox swig gcc"   # Windows mingw / mswin /ucrt

      - name: Print tool versions
        run: |
          ruby -v
          gcc -v
          swig -version
          gem env

      - name: Bundle install
        run: bundle install

      - name: Compile extension
        run: bundle exec rake compile

      - name: Linux Start xpra to enable GLX
        if: matrix.os == 'ubuntu'
        run: |
          xpra --xvfb="Xorg +extension GLX -config `pwd`/test/dummy.xorg.conf -logfile ${HOME}/.xpra/xorg.log"  start :9
          echo "DISPLAY=:9"  >> $GITHUB_ENV

      - name: MacOS Start XQuartz
        if: matrix.os == 'macos'
        run: |
          open -a /Applications/Utilities/XQuartz.app
          # wait some seconds until XQuartz has started
          sleep 10

      - name: Run tests
        run: bundle exec rake test

      - name: Linux Print logs if job failed
        if: ${{ failure() && matrix.os == 'ubuntu' }}
        run: cat ~/.xpra/*

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fxruby-1.6.46 .github/workflows/ci.yml
fxruby-1.6.46-x64-mingw32 .github/workflows/ci.yml
fxruby-1.6.46-x64-mingw-ucrt .github/workflows/ci.yml
fxruby-1.6.46-x86-mingw32 .github/workflows/ci.yml