Skip to content
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

refactor CI stuff so it is simpler and better contained #37

Merged
merged 5 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
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
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build

on: [push, pull_request]


concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Compile on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'

- uses: mamba-org/setup-micromamba@v1
name: Setup Conda
with:
init-shell: bash
environment-file: environment.yml
environment-name: "wrench"
cache-environment: true
cache-downloads: true

- name: Create working directory
shell: bash -l {0}
run: |
mkdir build

- name: Run cmake
shell: bash -l {0}
working-directory: ./build
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
export CC=cl.exe
export CXX=cl.exe
fi
cmake -G Ninja \
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \
..

- name: Build pdal_wrench
shell: bash -l {0}
working-directory: ./build
run: |
ninja
ninja install
44 changes: 0 additions & 44 deletions .github/workflows/linux.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/macos.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/windows.yml

This file was deleted.

11 changes: 11 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: wrench
channels:
- conda-forge
dependencies:
- conda
- mamba
- compilers
- ninja
- cmake
- pdal