Skip to content

Commit

Permalink
Merge pull request #17 from a1393323447/test
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
a1393323447 authored Dec 20, 2024
2 parents 158e876 + 3f8c402 commit 17ed8c1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
95 changes: 47 additions & 48 deletions .github/workflows/build_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,58 +54,57 @@ jobs:
os: [ windows-latest, ubuntu-latest, macOS-latest ]
fail-fast: false
steps:
- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
uses: seanmiddleditch/gha-setup-ninja@master
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y g++ cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev
- name: Install dependencies (macOS)
if: matrix.os == 'macOS-latest'
run: brew install ninja p7zip
- name: Fetch Skia release link
id: skia-link
uses: a1393323447/fetch-release@main
with:
group: aseprite
repo: skia
match: Skia-${{ runner.os }}-Release-x64(-libstdc\+\+)?.zip
- name: Download Skia
- name: Install Dependencies
if: runner.os == 'Linux'
shell: bash
run: |
curl -o Skia-${{ runner.os }}-Release-x64.zip -L ${{ steps.skia-link.outputs.download-link }}
unzip Skia-${{ runner.os }}-Release-x64.zip -d skia
- name: Download Aseprite release
sudo apt-get update -qq
sudo apt-get install -y \
libpixman-1-dev libfreetype6-dev libharfbuzz-dev zlib1g-dev \
libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev
- name: Install Skia
shell: bash
run: |
curl -o Aseprite-source.zip -L ${{ needs.create-release.outputs.download-link }}
unzip Aseprite-source.zip -d aseprite
mkdir -p aseprite/build
- name: Set architecture for the produced binary (Windows)
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
- name: Setting Visual Studio build environment variables and paths (Windows)
if: matrix.os == 'windows-latest'
uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Run CMake (Windows)
if: matrix.os == 'windows-latest'
working-directory: aseprite/build
shell: cmd
run: cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_IGNORE_PATH='C:/ProgramData/chocolatey/bin/;C:/Strawberry/c/bin/' -DLAF_BACKEND=skia -DSKIA_DIR=../../skia -DSKIA_LIBRARY_DIR=../../skia/out/Release-x64 -G Ninja ..
- name: Run CMake (Ubuntu)
if: matrix.os == 'ubuntu-latest'
working-directory: aseprite/build
run: cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DLAF_BACKEND=skia -DSKIA_DIR=../../skia -DSKIA_LIBRARY_DIR=../../skia/out/Release-x64 -G Ninja ..
- name: Run CMake (macOS)
if: matrix.os == 'macOS-latest'
working-directory: aseprite/build
if [[ "${{ runner.os }}" == "Windows" ]] ; then
choco install wget -y --no-progress
wget https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Windows-Release-x64.zip
unzip Skia-Windows-Release-x64.zip -d skia
elif [[ "${{ runner.os }}" == "macOS" ]] ; then
wget https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-macOS-Release-arm64.zip
unzip Skia-macOS-Release-arm64.zip -d skia
else
wget https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Linux-Release-x64-libstdc++.zip
unzip Skia-Linux-Release-x64-libstdc++.zip -d skia
fi
- uses: aseprite/get-ninja@main
- uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Generating Makefiles
shell: bash
run: |
cmake -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_OSX_ARCHITECTURES=x86_64 -DLAF_BACKEND=skia -DSKIA_DIR=../../skia -DSKIA_LIBRARY_DIR=../../skia/out/Release-x64 -G Ninja ..
- name: Run Ninja
working-directory: aseprite/build
run: ninja aseprite
- name: Clean up build
working-directory: aseprite/build/bin
export enable_ccache=off
export laf_backend=skia
export enable_scripting=on
if [[ "${{ runner.os }}" == "macOS" ]] ; then
export skia_arch=arm64
else
export skia_arch=x64
fi
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
-DENABLE_TESTS=ON \
-DENABLE_SCRIPTING=$enable_scripting \
-DENABLE_CCACHE=$enable_ccache \
-DLAF_BACKEND=$laf_backend \
-DSKIA_DIR=skia \
-DSKIA_LIBRARY_DIR=skia/out/Release-$skia_arch
- name: Compiling
shell: bash
run: rm -f gen modp_b64_gen gen.exe gen.exe.manifest modp_b64_gen.exe modp_b64_gen.exe.manifest
run: |
cd build && ninja
- name: (Windows) Make portable zip
working-directory: aseprite/build/bin
run: echo '# This file is here so Aseprite behaves as a portable program' > aseprite.ini
Expand Down
3 changes: 2 additions & 1 deletion BuildLog.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- build `v1.3-rc6`
- build `v1.3-rc6`
- build `v1.3.11-beta2`

0 comments on commit 17ed8c1

Please sign in to comment.