Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
axojhf authored May 14, 2024
1 parent 5c2f11b commit ae5caae
Showing 1 changed file with 27 additions and 19 deletions.
46 changes: 27 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
name: Demo Build
name: slint Build

on:
push:
branches:
- main
- slint
workflow_dispatch:
env:
SLINT_BINARY_FEATURES: "-DSLINT_FEATURE_BACKEND_WINIT=ON -DSLINT_FEATURE_RENDERER_FEMTOVG=ON -DSLINT_FEATURE_RENDERER_SKIA=ON -DSLINT_FEATURE_RENDERER_SKIA_VULKAN=ON"
LATEST_RELEASE: "v1.6.0"
jobs:
demo-build:
name: Demo Build
slint-build:
name: slint Build
runs-on: windows-2022
steps:
- name: Set Mingw64 Ninja
run: |
(new-object System.Net.WebClient).DownloadFile('https://github.com/cristianadam/mingw-builds/releases/download/v11.2.0-rev3/x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z','mingw64.7z')
7z x -aoa -oC:\ mingw64.7z ; rm mingw64.7z
(new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip','ninja-win.zip')
7z x -aoa -oC:\ninja ninja-win.zip ; rm ninja-win.zip
# - name: Set Mingw64 Ninja
# run: |
# (new-object System.Net.WebClient).DownloadFile('https://github.com/cristianadam/mingw-builds/releases/download/v11.2.0-rev3/x86_64-11.2.0-release-posix-seh-rt_v9-rev3.7z','mingw64.7z')
# 7z x -aoa -oC:\ mingw64.7z ; rm mingw64.7z
# (new-object System.Net.WebClient).DownloadFile('https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip','ninja-win.zip')
# 7z x -aoa -oC:\ninja ninja-win.zip ; rm ninja-win.zip
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
toolset: 14.3
# - name: Package Directories
# run: |
# cp -r C:\curl_install\lib C:\cpr_install -Force
# cp -r C:\curl_install\include C:\cpr_install -Force
# 7z a cpr_MinGW64_Static.7z C:\cpr_install
# - uses: actions/upload-artifact@v4
# with:
# name: cpr_MinGW64_Static
# path: cpr_MinGW64_Static.7z
- name: Package Directories
run: |
cd C:\ ; git clone --depth=1 https://github.com/slint-ui/slint -b ${{ env.LATEST_RELEASE }} ; cd slint
mkdir build ; cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo ${{ env.SLINT_BINARY_FEATURES }} -DCMAKE_INSTALL_PREFIX=C:\slint_install -DBUILD_SHARED_LIBS=ON
ninja ; ninja install
- name: Package Directories
run: |
7z a slint_shared_latest_release.7z C:\slint_install
- uses: actions/upload-artifact@v4
with:
name: slint_shared_latest_release
path: slint_shared_latest_release.7z
# - name: Update Cpr Release
# uses: softprops/action-gh-release@v2
# with:
Expand Down

0 comments on commit ae5caae

Please sign in to comment.