Skip to content

Commit

Permalink
github actions - use CImGui.jl settings
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay committed May 7, 2022
1 parent 7dc4cd6 commit ce40608
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
# github action - settings from https://github.com/Gnimuc/CImGui.jl/blob/master/.github/workflows/ci.yml
name: CI

on: [pull_request, push]

on:
- push
- pull_request
jobs:
Test:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.5.2]
julia-arch: [x64]
version: [1.6.4, 1.7.2]
arch: [x64]
os: [ubuntu-latest]
include:
- julia-version: nightly
- version: nightly
os: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: sudo apt-get install xvfb && Xvfb :99 &
if: matrix.os == 'ubuntu-latest'
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: runtests
run: |
xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0, 1280x720x24" julia --project=. -e 'using Pkg; Pkg.test()'
Coverage:
needs: Test
if: github.event.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: coverage
run: |
xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0, 1280x720x24" julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'
julia --project=. -e 'using Pkg; Pkg.add("Coverage"); using Coverage; cov = Coverage.process_folder(); mkdir("coverage"); Coverage.LCOV.writefile("coverage/lcov.info", cov)'
- uses: codecov/codecov-action@v1
- run: julia --project=@. -e 'using Pkg; pkg"dev CImGui"' # CImGui 1.82
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
env:
DISPLAY: :99
- uses: julia-actions/julia-uploadcodecov@latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit ce40608

Please sign in to comment.