Skip to content

Commit

Permalink
build test
Browse files Browse the repository at this point in the history
  • Loading branch information
yixiaco authored May 24, 2024
1 parent 75be573 commit dbcf4f7
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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'
Expand Down

0 comments on commit dbcf4f7

Please sign in to comment.