-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 96cdc73 Author: Liangliang Nan <[email protected]> Date: Wed Jan 8 13:19:35 2025 +0100 Update cmake-build.yml commit bb6237a Author: Liangliang Nan <[email protected]> Date: Wed Jan 8 13:01:41 2025 +0100 speedup github actions workflow commit 977c001 Author: Liangliang Nan <[email protected]> Date: Wed Jan 8 11:36:33 2025 +0100 remove glpk and lpsolve commit 3de6f5e Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 23:30:28 2025 +0100 test commit 4a2fc5c Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:56:51 2025 +0100 update github actions workflow commit 0721b15 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:32:41 2025 +0100 Update test-build-gcc.yml commit 40d70d7 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:23:54 2025 +0100 Update test-build-gcc.yml commit 759e6e2 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:21:25 2025 +0100 Update test-build-gcc.yml commit dd5801e Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:19:10 2025 +0100 Update test-build-gcc.yml commit 5aa0b1e Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:09:01 2025 +0100 Update test-build-gcc.yml commit 3fa84a0 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 21:06:24 2025 +0100 Update test-build-gcc.yml commit 12ae530 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 20:11:56 2025 +0100 Update test-build-gcc.yml commit 37d5de0 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 19:41:16 2025 +0100 Update test-build-gcc.yml commit 94090ba Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 19:25:38 2025 +0100 Update test-build-gcc.yml commit 546b121 Author: Liangliang Nan <[email protected]> Date: Tue Jan 7 18:27:01 2025 +0100 github actions workflow for three platforms
- Loading branch information
1 parent
a24d40d
commit 2b25397
Showing
369 changed files
with
128 additions
and
193,266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
############################################################################## | ||
# GitHub Actions Workflow to test building PolyFit on Windows, Ubuntu, and macOS. | ||
# | ||
# Copyright (C) 2022 Liangliang Nan <[email protected]> | ||
# | ||
# Licensed under GNU LGPL.3, see LICENCE file | ||
############################################################################## | ||
name: Test Build PolyFit | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: "Build on ${{ matrix.platform }} - ${{ matrix.build_type }}" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [windows-latest, ubuntu-latest, macos-latest] | ||
build_type: [Debug, Release] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
# Checkout the code | ||
- uses: actions/checkout@v3 | ||
|
||
# Install dependencies for each platform | ||
- name: Install Dependencies (Ubuntu) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update || true | ||
sudo apt-get install -y cmake build-essential libgl1-mesa-dev \ | ||
mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev \ | ||
libcgal-dev qt6-base-dev libglu1-mesa-dev freeglut3-dev | ||
- name: Install Dependencies (macOS) | ||
if: runner.os == 'macOS' | ||
run: | | ||
brew update || true | ||
brew install cmake cgal qt | ||
# Set up Conda on Windows | ||
- name: Set up Conda (Windows) | ||
if: runner.os == 'Windows' | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
architecture: x64 | ||
activate-environment: PolyFitDev | ||
auto-activate-base: false | ||
channels: conda-forge,defaults | ||
|
||
# Install Conda packages on Windows | ||
- name: Install Dependencies via Conda (Windows) | ||
if: runner.os == 'Windows' | ||
shell: bash -l {0} | ||
run: | | ||
conda install -y \ | ||
ninja \ | ||
conda-forge::qt6-main \ | ||
conda-forge::cgal || exit 1 | ||
# Configure the project | ||
- name: Configure (Linux & macOS) | ||
if: runner.os != 'Windows' | ||
run: | | ||
cmake -S . -B build/${{ matrix.build_type }} -G "Unix Makefiles" | ||
- name: Configure (Windows) | ||
if: runner.os == 'Windows' | ||
shell: bash -l {0} | ||
run: | | ||
cmake -S . -B build/${{ matrix.build_type }} \ | ||
-G "Visual Studio 17 2022" \ | ||
-A x64 \ | ||
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX/Library" | ||
# Build the project | ||
- name: Build (Linux & macOS) | ||
if: runner.os != 'Windows' | ||
run: cmake --build build/${{ matrix.build_type }} | ||
|
||
- name: Build (Windows) | ||
if: runner.os == 'Windows' | ||
shell: bash -l {0} | ||
run: cmake --build build/${{ matrix.build_type }} --config ${{ matrix.build_type }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.