Skip to content

Commit

Permalink
More CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Jul 18, 2024
1 parent d7104ef commit f640b81
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/cmake-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
RETENTION_DAYS: 30

jobs:
build-mingw-win32:
build-win32:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand All @@ -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
Expand All @@ -66,4 +72,4 @@ jobs:
theme
tools
obsidian.exe
retention-days: ${{env.RETENTION_DAYS}}
retention-days: ${{env.RETENTION_DAYS}}
24 changes: 15 additions & 9 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f640b81

Please sign in to comment.