From d51d349cf881770bc9ad06a5b45f8a9f6c701a24 Mon Sep 17 00:00:00 2001 From: eparshut Date: Wed, 26 Jun 2024 09:10:06 -0700 Subject: [PATCH] check --- .github/workflows/main.yml | 9 ++++----- .github/workflows/release.yml | 22 +++++++++++++++++----- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0828dd9..79cbd45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [ master ] + branches: [ master, check_branch ] pull_request: branches: [ master ] @@ -22,11 +22,10 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] include: - os: ubuntu-latest - optional_args: "-pt" + optional_args: -pt - os: windows-latest - optional_args: "-pt --cmake_gen ninja" - - os: macOS-latest - optional_args: "" + optional_args: -pt --cmake_gen ninja + - os: macos-latest steps: - name: Checkout sources uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b805ada..9f27d1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,21 +16,33 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] + include: + - os: ubuntu-latest + optional_args: -pt + - os: windows-latest + optional_args: -pt --cmake_gen ninja + - os: macos-latest steps: - name: Checkout sources uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Config environment if: runner.os == 'Linux' run: sudo apt-get update && sudo apt-get install gcc-multilib + - name: Setup Fortran compiler + uses: fortran-lang/setup-fortran@8821f57b53846d35d62632eb51c60ac6c4bff4ce # v1.6.1 + with: + compiler: intel - name: Build C library - run: python buildall.py -v ${{ runner.os != 'macOS' && '-pt' || '' }} + run: python buildall.py -ft ${{ matrix.optional_args }} - name: Display structure of files run: ls -R - name: Upload Artifact uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0 with: name: build-artifacts-${{ matrix.os }} - path: build*/**/bin + path: | + build*/**/bin + build*/fortran create_release: permissions: @@ -61,9 +73,9 @@ jobs: run: ls -R - name: Zip files run: | - zip -r ittapi_build_${{ github.ref_name }}.zip include && - cd build-artifacts && - zip -rg ../ittapi_build_${{ github.ref_name }}.zip build*/**/bin && + zip -r ittapi_build_${{ github.ref_name }}.zip include && + cd build-artifacts && + zip -rg ../ittapi_build_${{ github.ref_name }}.zip build*/**/bin build*/fortran && cd - - name: Upload Release Asset id: upload-release-asset