From b7e001eee68770e3fc2fafb18c326d27b90b8922 Mon Sep 17 00:00:00 2001 From: Cheng Gong Date: Sat, 24 Feb 2024 23:15:55 +0800 Subject: [PATCH] add if statement for macos --- .github/workflows/CI.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ccaa22e..c0e4ce5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,11 +22,10 @@ jobs: - '1.9' # the minimum version - '1.10' # the latest version os: - - ubuntu-20.04 + - ubuntu-lastest - macOS-latest arch: - x64 - steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 @@ -44,11 +43,16 @@ jobs: ${{ runner.os }}-test- ${{ runner.os }}- - uses: julia-actions/cache@v1 - - run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev xsettingsd x11-xserver-utils - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 + - if: matrix.os == ubuntu-latest + run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev xsettingsd x11-xserver-utils + uses: julia-actions/julia-runtest@v1 with: prefix: xvfb-run -s '-screen 0 1024x768x24' + - if: matrix.os == macOS-latest + uses: julia-actions/julia-runtest@v1 + with: + prefix: Xvfb -s '-screen 0 1024x768x24' - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v1 with: