Skip to content

add CI building pipeline #14

add CI building pipeline

add CI building pipeline #14

Workflow file for this run

name: pennyunpacker
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release]
c_compiler: [clang, cl]
include:
- os: windows-latest
c_compiler: cl
cpp_compiler: cl
- os: ubuntu-latest
c_compiler: clang
cpp_compiler: clang++
exclude:
- os: windows-latest
c_compiler: gcc
- os: windows-latest
c_compiler: clang
- os: ubuntu-latest
c_compiler: cl
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: >
cmake -B build -S .
- name: Build
run: cmake --build build --config Release
- name: Upload win artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: pennyunpacker-windows
path: build/pennyunpacker.exe
- name: Upload linux artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: pennyunpacker-linux
path: build/pennyunpacker