From ed7e6c23a57ec690fc2ea3a057efd234d412d901 Mon Sep 17 00:00:00 2001 From: Andrea Sgattoni Date: Fri, 25 Mar 2022 10:38:15 +0100 Subject: [PATCH] remove old manual workflows --- .github/workflows/cmake_linux_manual.yml | 205 --------------------- .github/workflows/cmake_windows_manual.yml | 150 --------------- 2 files changed, 355 deletions(-) delete mode 100644 .github/workflows/cmake_linux_manual.yml delete mode 100644 .github/workflows/cmake_windows_manual.yml diff --git a/.github/workflows/cmake_linux_manual.yml b/.github/workflows/cmake_linux_manual.yml deleted file mode 100644 index 7e99e550c73..00000000000 --- a/.github/workflows/cmake_linux_manual.yml +++ /dev/null @@ -1,205 +0,0 @@ -name: CMake linux - -on: workflow_dispatch - -jobs: - cmake: - runs-on: ubuntu-latest - steps: - - name: Setup .NET Core 3.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.x - - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x - - name: Pip install reqs - run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas virtualenv - - name: Checkout Sirius repo - uses: actions/checkout@v2 - with: - repository: rte-france/sirius-solver - path: ./sirius-solver - ref: antares_integration - - name: Configure Sirius - working-directory: ./sirius-solver - run: | - cmake -S src \ - -B build \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=SiriusInstall - - name: Build & Install Sirius - working-directory: ./sirius-solver - run: cmake --build build/ --config Release --target install -j14 - - name: Upload sirius install - uses: actions/upload-artifact@v2 - with: - name: sirius_install - path: ./sirius-solver/SiriusInstall - - name: Checkout xpressmp813 - uses: actions/checkout@v2 - with: - repository: rte-france/xpress-mp - path: ./xpressmp813 - ref: master - token: ${{ secrets.ACCESS_TOKEN }} - - name: Checkout or-tools - uses: actions/checkout@v2 - with: - path: ./or-tools - - name: Configure or-tools - working-directory: ./or-tools - run: | - cmake -S. \ - -Bbuild \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="build/install" \ - -DBUILD_SHARED_LIBS=ON \ - -DBUILD_DEPS=ON \ - -DUSE_SIRIUS=ON \ - -Dsirius_solver_DIR="${{ github.workspace }}/sirius-solver/SiriusInstall/cmake" \ - -DUSE_XPRESS=ON \ - -DXPRESS_ROOT="${{ github.workspace }}/xpressmp813" \ - -DBUILD_PYTHON=ON \ - -DBUILD_JAVA=ON \ - -DBUILD_DOTNET=ON - - name: Build tests - working-directory: ./or-tools - run: | - cmake --build build \ - --target all \ - install \ - -j14 - - name: Configure or-tools static - working-directory: ./or-tools - run: | - cmake -S. \ - -Bbuildstatic \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="buildstatic/install" \ - -DBUILD_SHARED_LIBS=OFF \ - -DBUILD_DEPS=ON \ - -DUSE_SIRIUS=ON \ - -Dsirius_solver_DIR="${{ github.workspace }}/sirius-solver/SiriusInstall/cmake" \ - -DUSE_XPRESS=ON \ - -DXPRESS_ROOT="${{ github.workspace }}/xpressmp813" \ - -DBUILD_SAMPLES=OFF - - name: Build ortools static - working-directory: ./or-tools - run: | - cmake --build buildstatic \ - --target ortools \ - install \ - -j14 - - name: Prepare ortools install dyn - working-directory: ./or-tools/build/install - run: find bin -type f ! \( -name 'protoc*' -o -name 'scip' -o -name 'fz' \) -delete - - name: Upload ortools install dyn - uses: actions/upload-artifact@v2 - with: - name: ortools_dyn_install - path: ./or-tools/build/install - - name: Build & run CMake example project using dyn install - working-directory: ./or-tools/examples/cmake/linear_programming/ - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - run: | - cmake -Bbuild -S. -DORTOOLS_INSTALL="${{ github.workspace }}/or-tools/build/install" -DXPRESS_ROOT="${{ github.workspace }}/xpressmp813" -Dsirius_solver_DIR="${{ github.workspace }}/sirius-solver/SiriusInstall/cmake" - cmake --build build - ./build/linear_programming - - name: Prepare ortools install static - working-directory: ./or-tools/buildstatic/install - run: find bin -type f ! \( -name 'protoc*' -o -name 'scip' -o -name 'fz' \) -delete - - name: Upload ortools install static - uses: actions/upload-artifact@v2 - with: - name: ortools_static_install - path: ./or-tools/buildstatic/install - - name: Build & run CMake example project using static install - working-directory: ./or-tools/examples/cmake/linear_programming/ - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - run: | - cmake -Bbuildstatic -S. -DORTOOLS_INSTALL="${{ github.workspace }}/or-tools/buildstatic/install" -DXPRESS_ROOT="${{ github.workspace }}/xpressmp813" -Dsirius_solver_DIR="${{ github.workspace }}/sirius-solver/SiriusInstall/cmake" - cmake --build buildstatic - ./buildstatic/linear_programming - - name: Upload ortools wheel - uses: actions/upload-artifact@v2 - with: - name: ortools_wheel - path: './or-tools/build/python/dist/*.whl' - - name: Upload ortools jar - uses: actions/upload-artifact@v2 - with: - name: ortools_jar - path: ./or-tools/build/java/ortools-*/target/*.jar - - name: Upload ortools dotnet - uses: actions/upload-artifact@v2 - with: - name: ortools_dotnet - path: | - ./or-tools/build/dotnet/packages/Google.OrTools.[0-9]*.[0-9]*.[0-9]*.nupkg - ./or-tools/build/dotnet/packages/Google.OrTools.runtime.*.[0-9]*.[0-9]*.[0-9]*.nupkg - - name: Run sirius_interface unittests - working-directory: ./or-tools/build - run: ctest -V -R 'cxx_unittests_sirius_interface' - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run xpress_interface unittests - working-directory: ./or-tools/build - run: ctest -V -R 'cxx_unittests_xpress_interface' - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run specific cpp tests - working-directory: ./or-tools/build - run: ctest -V -R cxx_cpp_linear_programming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run specific python tests - working-directory: ./or-tools/build - run: ctest -V -R python_python_linear_programming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run specific java tests - working-directory: ./or-tools/build - run: ctest -V -R java_java_LinearProgramming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run specific dotnet tests - working-directory: ./or-tools/build - run: ctest -V -R dotnet_dotnet_cslinearprogramming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run other cpp tests - working-directory: ./or-tools/build - run: ctest --output-on-failure -R cxx_cpp -E cxx_cpp_linear_programming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run other python tests - working-directory: ./or-tools/build - run: ctest --output-on-failure -R python_python -E python_python_linear_programming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run other java tests - working-directory: ./or-tools/build - run: ctest --output-on-failure -R java_java -E java_java_LinearProgramming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" - - name: Run other dotnet tests - working-directory: ./or-tools/build - run: ctest --output-on-failure -R dotnet_dotnet -E dotnet_dotnet_cslinearprogramming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - LD_LIBRARY_PATH: "${{ github.workspace }}/sirius-solver/SiriusInstall/lib/:${{ github.workspace }}/xpressmp813/lib/" diff --git a/.github/workflows/cmake_windows_manual.yml b/.github/workflows/cmake_windows_manual.yml deleted file mode 100644 index d36cecd68a5..00000000000 --- a/.github/workflows/cmake_windows_manual.yml +++ /dev/null @@ -1,150 +0,0 @@ -name: CMake Windows - -on: workflow_dispatch - -jobs: - cmake: - runs-on: windows-latest - steps: - - name: Setup python 3.10 - uses: actions/setup-python@v2 - with: - python-version: '3.10' - - name: Install SWIG 4.0.2 - run: | - (New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.0.2.zip","swigwin-4.0.2.zip"); - Expand-Archive .\swigwin-4.0.2.zip .; - echo "$((Get-Item .).FullName)/swigwin-4.0.2" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - - name: Setup .NET Core 3.1 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.x - - name: Setup .NET 6.0 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.0.x - - name: Pip install reqs - run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas virtualenv - - name: Add Python binaries to path - run: echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/Python310/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - - name: Checkout Sirius repo - uses: actions/checkout@v2 - with: - repository: rte-france/sirius-solver - path: ./sirius-solver - ref: antares_integration - - name: Configure Sirius - working-directory: ./sirius-solver - run: cmake -Ssrc -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=SiriusInstall - - name: Build & Install Sirius - working-directory: ./sirius-solver - run: cmake --build build/ --config Release --target INSTALL -- /maxcpucount - - name: Upload sirius install - uses: actions/upload-artifact@v2 - with: - name: sirius_install - path: ./sirius-solver/SiriusInstall - - name: Add Sirius bin to path - shell: bash - run: echo "${{ github.workspace }}\sirius-solver\SiriusInstall\bin" >> $GITHUB_PATH - - name: Checkout xpressmp813Win - uses: actions/checkout@v2 - with: - repository: rte-france/xpress-mp-temp - path: ./xpressmp813 - ref: master - token: ${{ secrets.ACCESS_TOKEN }} - - name: Add xpress bin to path - shell: bash - run: echo "${{ github.workspace }}\xpressmp813\bin" >> $GITHUB_PATH - - name: Checkout or-tools - uses: actions/checkout@v2 - with: - path: ./or-tools - - name: Configure or-tools - working-directory: ./or-tools - run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="build/install" -DBUILD_DEPS=ON -DUSE_SIRIUS=ON -Dsirius_solver_DIR="${{ github.workspace }}/sirius-solver/SiriusInstall/cmake" -DUSE_XPRESS=ON -DXPRESS_ROOT="${{ github.workspace }}/xpressmp813" -DBUILD_PYTHON=OFF -DBUILD_JAVA=OFF -DBUILD_DOTNET=OFF - - name: Build tests - working-directory: ./or-tools - run: cmake --build build --config Release --target ALL_BUILD INSTALL -v -- /maxcpucount - - name: Prepare ortools install - working-directory: ./or-tools/build/install - shell: bash - run: find bin -type f ! \( -name 'fz.exe' -o -name 'protoc.exe' -o -name 'scip.exe' \) -delete - - name: Upload ortools install - uses: actions/upload-artifact@v2 - with: - name: ortools_install - path: ./or-tools/build/install - - name: Build & run CMake example project - working-directory: ./or-tools/examples/cmake/linear_programming/ - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: | - cmake -Bbuild -S. -DORTOOLS_INSTALL="${{ github.workspace }}/or-tools/build/install" -DCMAKE_BUILD_TYPE=Release -DXPRESS_ROOT="${{ github.workspace }}/xpressmp813" -Dsirius_solver_DIR="${{ github.workspace }}/sirius-solver/SiriusInstall/cmake" - cmake --build build --config Release - build\Release\linear_programming.exe - - name: Upload ortools wheel - uses: actions/upload-artifact@v2 - with: - name: ortools_wheel - path: './or-tools/build/python/dist/*.whl' - - name: Upload ortools jar - uses: actions/upload-artifact@v2 - with: - name: ortools_jar - path: ./or-tools/build/java/ortools-*/target/*.jar - - name: Upload ortools dotnet - uses: actions/upload-artifact@v2 - with: - name: ortools_dotnet - path: | - ./or-tools/build/dotnet/packages/Google.OrTools.[0-9]*.[0-9]*.[0-9]*.nupkg - ./or-tools/build/dotnet/packages/Google.OrTools.runtime.*.[0-9]*.[0-9]*.[0-9]*.nupkg - - name: Run sirius_interface unittests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R 'cxx_unittests_sirius_interface' - - name: Run xpress_interface unittests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R 'cxx_unittests_xpress_interface' - - name: Run specific cpp tests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R cxx_cpp_linear_programming - - name: Run specific python tests - working-directory: ./or-tools/build - run: ctest -V -C Release -R python_python_linear_programming - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - SIRIUS_BIN_DIR: "${{ github.workspace }}/sirius-solver/SiriusInstall/bin" - XPRESS_BIN_DIR: "${{ github.workspace }}/xpressmp813/bin" - - name: Run specific java tests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R java_java_LinearProgramming - - name: Run specific dotnet tests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R dotnet_dotnet_cslinearprogramming - - name: Run other cpp tests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R cxx_cpp -E cxx_cpp_linear_programming - - name: Run other java tests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R java_java -E java_java_LinearProgramming - - name: Run other dotnet tests - working-directory: ./or-tools/build - env: - XPRESS: "${{ github.workspace }}/xpressmp813/bin/" - run: ctest -V -C Release -R dotnet_dotnet -E dotnet_dotnet_cslinearprogramming