From f640b8196566bdad028f96fae3c74b313ac4bc23 Mon Sep 17 00:00:00 2001 From: dashodanger Date: Wed, 17 Jul 2024 23:35:05 -0600 Subject: [PATCH] More CI testing --- .github/workflows/cmake-release.yml | 24 +++++++++++++++--------- .github/workflows/cmake.yml | 24 +++++++++++++++--------- 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cmake-release.yml b/.github/workflows/cmake-release.yml index 4a60db7c7..4708f1576 100644 --- a/.github/workflows/cmake-release.yml +++ b/.github/workflows/cmake-release.yml @@ -11,7 +11,7 @@ env: RETENTION_DAYS: 30 jobs: - build-mingw-win32: + build-win32: runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -27,7 +27,7 @@ jobs: strip ${{github.workspace}}\obsidian.exe - uses: actions/upload-artifact@v4 with: - name: obsidian-mingw-win32 + name: obsidian-win32 path: | addons data @@ -42,17 +42,23 @@ jobs: tools obsidian.exe retention-days: ${{env.RETENTION_DAYS}} - build-msvc-win64: + build-win64: runs-on: windows-latest steps: - uses: actions/checkout@v4 - - name: Configure CMake MSVC 64-bit - run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - - name: Build MSVC 64-bit - run: cmake --build build --config ${{env.BUILD_TYPE}} + - name: Download w64devkit + run: invoke-webrequest https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-1.23.0.zip -outfile ${{github.workspace}}\w64devkit.zip + - name: Extract w64devkit + run: expand-archive -path ${{github.workspace}}\w64devkit.zip -destinationpath ${{github.workspace}} + - name: Set environment variables and build + run: | + $env:Path = "${{github.workspace}}\w64devkit\bin;" + $env:Path + cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-isystem ${{github.workspace}}\w64devkit\include" -DCMAKE_C_FLAGS="-isystem ${{github.workspace}}\w64devkit\include" -G "MinGW Makefiles" + cmake --build build --config ${{env.BUILD_TYPE}} + strip ${{github.workspace}}\obsidian.exe - uses: actions/upload-artifact@v4 with: - name: obsidian-msvc-win64 + name: obsidian-win64 path: | addons data @@ -66,4 +72,4 @@ jobs: theme tools obsidian.exe - retention-days: ${{env.RETENTION_DAYS}} \ No newline at end of file + retention-days: ${{env.RETENTION_DAYS}} \ No newline at end of file diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index bfb67de60..a585bf1e5 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -13,17 +13,23 @@ env: RETENTION_DAYS: 30 jobs: - build-msvc: + build-win32: runs-on: windows-latest steps: - uses: actions/checkout@v4 - - name: Configure CMake MSVC - run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - - name: Build MSVC - run: cmake --build build --config ${{env.BUILD_TYPE}} + - name: Download w64devkit + run: invoke-webrequest https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-i686-1.23.0.zip -outfile ${{github.workspace}}\w64devkit.zip + - name: Extract w64devkit + run: expand-archive -path ${{github.workspace}}\w64devkit.zip -destinationpath ${{github.workspace}} + - name: Set environment variables and build + run: | + $env:Path = "${{github.workspace}}\w64devkit\bin;" + $env:Path + cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-isystem ${{github.workspace}}\w64devkit\include" -DCMAKE_C_FLAGS="-isystem ${{github.workspace}}\w64devkit\include" -G "MinGW Makefiles" + cmake --build build --config ${{env.BUILD_TYPE}} + strip ${{github.workspace}}\obsidian.exe - uses: actions/upload-artifact@v4 with: - name: obsidian-msvc + name: obsidian-win32 path: | addons data @@ -38,12 +44,12 @@ jobs: tools obsidian.exe retention-days: ${{env.RETENTION_DAYS}} - build-mingw: + build-win64: runs-on: windows-latest steps: - uses: actions/checkout@v4 - name: Download w64devkit - run: invoke-webrequest https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-i686-1.23.0.zip -outfile ${{github.workspace}}\w64devkit.zip + run: invoke-webrequest https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-1.23.0.zip -outfile ${{github.workspace}}\w64devkit.zip - name: Extract w64devkit run: expand-archive -path ${{github.workspace}}\w64devkit.zip -destinationpath ${{github.workspace}} - name: Set environment variables and build @@ -54,7 +60,7 @@ jobs: strip ${{github.workspace}}\obsidian.exe - uses: actions/upload-artifact@v4 with: - name: obsidian-mingw + name: obsidian-win64 path: | addons data