From dc64ca8788df1abee92e751da09783b0a257ab09 Mon Sep 17 00:00:00 2001 From: YYMMYB <1329112803@QQ.COM> Date: Mon, 8 Jan 2024 15:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E7=94=A8=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 参考 https://zhuanlan.zhihu.com/p/564437259 --- .github/workflows/build.yml | 39 +++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0407155917..ba3e3ceb91f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,9 +6,9 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest, macos-latest, ubuntu-latest] - build_type: [RelWithDebInfo, Debug] - enable_ui: [off] + os: [windows-latest] + build_type: [Release] + enable_ui: [on] include: - os: ubuntu-latest build_type: Debug @@ -45,29 +45,26 @@ jobs: else export enable_ccache=on fi + curl -L https://github.com/blueloveTH/aseprite/releases/download/v0.01/skia.zip --output skia.zip + curl -L https://github.com/blueloveTH/aseprite/releases/download/v0.01/libcrypto-1_1-x64.dll --output libcrypto-1_1-x64.dll + 7z x skia.zip cmake -S . -B build -G Ninja \ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ - -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \ - -DENABLE_TESTS=ON \ + # -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \ + # -DENABLE_TESTS=ON \ -DENABLE_UI=${{ matrix.enable_ui }} \ -DENABLE_CCACHE=$enable_ccache + -DLAF_BACKEND=skia \ + -DSKIA_DIR=./skia \ + -DSKIA_LIBRARY_DIR=./skia/out/Release-x64 \ + -DSKIA_LIBRARY=./skia/out/Release-x64/skia.lib - name: Compiling shell: bash run: | cd build && ninja - - name: Running C++ Tests - shell: bash - run: | - if [[ "${{ runner.os }}" == "Linux" ]] ; then - export XVFB=xvfb-run - fi - cd build && $XVFB ctest --output-on-failure - - name: Running CLI Tests - shell: bash - run: | - if [[ "${{ runner.os }}" == "Linux" ]] ; then - export XVFB=xvfb-run - fi - export ASEPRITE=$PWD/build/bin/aseprite - cd tests - $XVFB bash run-tests.sh + - uses: actions/upload-artifact@v3 + with: + name: aseprite + path: | + D:/a/aseprite/aseprite/build/bin/data + D:/a/aseprite/aseprite/build/bin/aseprite.exe