Skip to content

Update and speed-up CI #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/ZenLib_Checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
uses: actions/checkout@v4
- name: Dependencies
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
Expand All @@ -27,7 +25,7 @@ jobs:
- name: Build
run: |
cd Project/GNU/Library
make
make -j4
- name: Check
run: |
cd Project/GNU/Library
Expand All @@ -37,7 +35,7 @@ jobs:
mkdir Project/CMake/Build
cd Project/CMake/Build
cmake -DBUILD_ZENLIB=1 ..
make
make -j4

Windows:
runs-on: windows-latest
Expand All @@ -46,14 +44,16 @@ jobs:
architecture: [ Win32, x64, ARM64 ]
fail-fast: false
steps:
- name: Checkout ZenLib
uses: actions/checkout@v4
with:
path: ZenLib
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
run: msbuild /p:Configuration=Release /p:Platform=${{ matrix.architecture }} ${{ github.workspace }}\ZenLib\Project\MSVC2022\ZenLib_MSVC.sln /verbosity:quiet /warnaserror
- name: Checkout ZenLib
uses: actions/checkout@v4
with:
path: ZenLib
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Build
run: msbuild -p:Configuration=Release -p:Platform=${{ matrix.architecture }} ${{ github.workspace }}\ZenLib\Project\MSVC2022\ZenLib_MSVC.sln -verbosity:quiet -warnaserror

MinGW:
runs-on: windows-latest
Expand Down Expand Up @@ -84,4 +84,4 @@ jobs:
cmake -S Project/CMake -B build -G "$GENERATOR" -DCMAKE_BUILD_TYPE=$CONFIGURATION
- name: Build project using make
shell: bash
run: make -C build -j
run: make -C build -j4