From dbcf4f742f3020ecab606b07f0048161a4d5d66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=A4=8F?= Date: Fri, 24 May 2024 23:43:48 +0800 Subject: [PATCH] build test --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0c29c16c4..4f05306114 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,20 +48,42 @@ jobs: run: | if [[ "${{ runner.os }}" == "Windows" ]] ; then export enable_ccache=off - else + curl -L https://github.com/aseprite/skia/releases/download/m124-eadfe707ca/Skia-Windows-Release-x64.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 }} \ + -DENABLE_UI=${{ matrix.enable_ui }} \ + -DENABLE_CCACHE=$enable_ccache \ + -DLAF_BACKEND=skia \ + -DSKIA_DIR=./skia \ + -DSKIA_LIBRARY_DIR=./out/Release-x64 \ + -DSKIA_LIBRARY=./out/Release-x64/skia.lib + elif [[ "${{ runner.os }}" == "Linux" ]] ; then 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 \ + curl -L https://github.com/aseprite/skia/releases/download/m124-eadfe707ca/Skia-Linux-Release-x64.zip --output skia.zip + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ + -DENABLE_UI=${{ matrix.enable_ui }} \ + -DENABLE_CCACHE=$enable_ccache \ + -DLAF_BACKEND=skia \ + -DSKIA_DIR=./skia \ + -DSKIA_LIBRARY_DIR=./out/Release-x64 \ + -DSKIA_LIBRARY=./out/Release-x64/libskia.a + elif [[ "${{ runner.os }}" == "macOS" ]] ; then + export enable_ccache=on + curl -L https://github.com/aseprite/skia/releases/download/m124-eadfe707ca/Skia-macOS-Release-x64.zip --output skia.zip + cmake -S . -B build -G Ninja \ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ -DENABLE_UI=${{ matrix.enable_ui }} \ + -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -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 + -DSKIA_LIBRARY_DIR=./out/Release-x64 \ + -DSKIA_LIBRARY=./out/Release-x64/libskia.a\ + -G Ninja \ + .. ninja aseprite + fi - name: Compiling shell: bash run: | @@ -77,8 +99,9 @@ jobs: - uses: actions/upload-artifact@v3 if: runner.os == 'Linux' with: - name: aseprite-linux + name: aseprite-ubuntu path: | + ./build/bin/data ./build/bin/aseprite - uses: actions/upload-artifact@v3 if: runner.os == 'macOS'