From f94d8d07f5aac8990283c0dde19f874360319228 Mon Sep 17 00:00:00 2001 From: Albin Johansson Date: Fri, 15 Dec 2023 19:26:38 +0100 Subject: [PATCH] CI: download dummy image --- .github/workflows/macos.yml | 7 +++++++ .github/workflows/ubuntu.yml | 7 +++++++ .github/workflows/windows.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4efc9d63dc..ebb5177e9c 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -45,6 +45,9 @@ jobs: - name: Register custom Vcpkg triplet file run: cp "cmake/x64-osx-tactile.cmake" "$VCPKG_ROOT/triplets/community/x64-osx-tactile.cmake" + - name: Download assets + run: wget --output-document "assets/images/dummy.png" "https://dummyimage.com/96x64.png" + - name: Generate build files run: | mkdir build && cd build @@ -58,6 +61,10 @@ jobs: - name: Build run: ninja -C build + - name: Run foundation unit tests + working-directory: ./build/debug + run: ./tactile-foundation-test + - name: Run core unit tests working-directory: ./build/debug run: ./tactile-core-test diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 2564d1c9f8..abe6d82016 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -65,6 +65,9 @@ jobs: --exec /usr/bin/Xvfb -- :99 -screen 0 800x600x24 -ac +extension GLX; sleep 3 + - name: Download assets + run: wget --output-document "assets/images/dummy.png" "https://dummyimage.com/96x64.png" + - name: Generate build files env: BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} @@ -80,6 +83,10 @@ jobs: - name: Build run: ninja -C build + - name: Run foundation unit tests + working-directory: ./build/debug + run: ./tactile-foundation-test + - name: Run core unit tests working-directory: ./build/debug run: ./tactile-core-test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f2d4d04166..a62b4d1306 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -43,6 +43,9 @@ jobs: run: Copy-Item -Path "cmake\x64-windows-tactile.cmake" ` -Destination "$ENV:VCPKG_ROOT\triplets\community\x64-windows-tactile.cmake" + - name: Download assets + run: Invoke-WebRequest "https://dummyimage.com/96x64.png" -OutFile "assets\images\dummy.png" + - name: Generate build files env: BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} @@ -59,6 +62,10 @@ jobs: - name: Build run: ninja -C build + - name: Run foundation unit tests + working-directory: ./build/debug + run: .\tactile-foundation-test.exe + - name: Run core unit tests working-directory: ./build/debug run: .\tactile-core-test.exe