Skip to content

fixup

fixup #626

Workflow file for this run

name: Build
on: push
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu-gcc",
os: ubuntu-latest,
compiler: "gcc",
build_script: "build.sh"
}
- {
name: "macOs-clang",
os: macos-latest,
compiler: "clang",
build_script: "build.sh"
}
- {
name: "Windows-msvc",
os: windows-latest,
compiler: "msvc",
build_script: "build.bat"
}
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
path: 'pagoda'
- name: Build
run: ${{ github.workspace }}/pagoda/${{ matrix.config.build_script}} ${{ github.workspace }} ${{ matrix.config.OS }} ${{ matrix.config.compiler }}
- name: Run tests
run: |
cd build
ctest -C Release
- name: Install
run: |
mkdir -p ${{ github.workspace }}/install_dir
cmake --install ${{ github.workspace }}/build --prefix ${{ github.workspace }}/build/pagoda
- name: Pack
shell: cmake -P {0}
run: |
execute_process(COMMAND ${CMAKE_COMMAND}
-E tar cJfv "${{ matrix.config.name }}.tar.xz" "${{ github.workspace }}/build/pagoda")
- name: Upload
uses: actions/upload-artifact@v1
with:
path: ./${{ matrix.config.name }}.tar.xz
name: ${{ matrix.config.name }}.tar.xz