Issue-348: Interop is not compatible with Numpy 2.0.0 #108
Workflow file for this run
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
name: .NET Standard C# | |
on: | |
push: | |
branches: [ "master" ] | |
tags: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-13] | |
buildtype: ["Debug", "Release"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Git name | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
git --version | |
mkdir dist | |
- name: Configure Windows | |
if: matrix.os == 'windows-latest' | |
run: cmake ${{github.workspace}} -Ax64 -B${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.buildtype}} -DPACKAGE_OUTPUT_FILE_PREFIX=${{github.workspace}}/dist -DENABLE_SWIG=ON -DENABLE_PORTABLE=ON -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=ON -DENABLE_PYTHON=OFF -DCSHARP_TEST_FRAMEWORK=netcoreapp6 | |
- name: Install Swig | |
if: matrix.os == 'macOS-13' | |
run: pip install swig==4.0.2 --prefix="$(pwd)/usr" | |
- name: Configure OSX | |
if: matrix.os == 'macOS-13' | |
run: cmake ${{github.workspace}} -B${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.buildtype}} -DPACKAGE_OUTPUT_FILE_PREFIX=${{github.workspace}}/dist -DENABLE_SWIG=ON -DENABLE_PORTABLE=ON -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=ON -DENABLE_PYTHON=OFF -DCSHARP_TEST_FRAMEWORK=netcoreapp6 -DSWIG_EXECUTABLE=$(ls $(pwd)/usr/lib/python3.*/site-packages/swig/data/bin/swig) -DSWIG_DIR=$( cd "$(pwd)/usr/lib/python3.*/site-packages/swig/data/share/swig/4.0.2" ; pwd -P ) | |
- name: Build OSX and Windows | |
if: matrix.os != 'ubuntu-latest' | |
run: cmake --build build --config ${{matrix.buildtype}} | |
- name: Test OSX and Windows | |
if: matrix.os != 'ubuntu-latest' | |
run: cmake --build build --config ${{matrix.buildtype}} --target check | |
- name: Package OSX and Windows | |
if: matrix.os != 'ubuntu-latest' | |
run: cmake --build build --config ${{matrix.buildtype}} --target nupack | |
- name: Linux Build, Test and Package in Docker | |
if: matrix.os == 'ubuntu-latest' | |
run: docker run --rm -v ${{github.workspace}}/:/io ezralanglois/interop bash -c "cmake /io -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.buildtype}} -DPACKAGE_OUTPUT_FILE_PREFIX=/io/dist -DENABLE_SWIG=ON -DENABLE_PORTABLE=ON -DENABLE_EXAMPLES=OFF -DENABLE_CSHARP=ON -DENABLE_PYTHON=OFF && cmake --build build && cmake --build build --target check && cmake --build build --target nupack" | |
- name: Test Artifacts | |
run: ls dist/* | |
- uses: actions/upload-artifact@v3 | |
if: matrix.buildtype == 'Release' | |
with: | |
path: dist/illumina*.* | |
publish: | |
needs: [build] | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: artifact | |
path: dist | |
- name: Publish Artifacts to Github Releases | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: fnkr/github-action-ghr@v1 | |
env: | |
GHR_PATH: dist/ | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |