From 08f82dc0be9f884d2432a88e85005bef15ed33fd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 2 Apr 2026 01:02:18 +0200 Subject: [PATCH] Add mingw CI build setup. --- .github/workflows/mingw.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/mingw.yml diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml new file mode 100644 index 00000000..7e6a80d8 --- /dev/null +++ b/.github/workflows/mingw.yml @@ -0,0 +1,33 @@ +name: build-mingw + +on: + workflow_dispatch: + +env: + CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm-cache + +jobs: + build-mingw: + runs-on: ubuntu-latest + container: archlinux:base-devel + steps: + - name: Install dependencies + run: | + pacman -Syu --noconfirm + pacman -S --noconfirm --needed mingw-w64-gcc cmake git nodejs + - name: Trust git repo + run: git config --global --add safe.directory '*' + - uses: actions/checkout@v4 + - name: Cache CPM packages + uses: actions/cache@v4 + with: + path: ${{ env.CPM_SOURCE_CACHE }} + key: ${{ runner.os }}-cpm-${{ hashFiles('**/vendor.cmake', '**/CMakeLists.txt') }} + restore-keys: ${{ runner.os }}-cpm- + - name: Build TracyClient + run: | + cmake -B build -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SYSTEM_NAME=Windows \ + -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \ + -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ + cmake --build build