Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 5 additions & 18 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-15-intel, macos-latest, windows-2022]
os: [ubuntu-latest, macos-latest]
build: [cpp, java, dotnet, python]
include:
# Map build to CMake
Expand All @@ -72,18 +72,10 @@ jobs:
platform: linux
generator: Ninja
cmake_flags: -DCMAKE_BUILD_TYPE=Release
- os: macos-15-intel
platform: macos
generator: Ninja
cmake_flags: -DCMAKE_BUILD_TYPE=Release
- os: macos-latest
platform: macos
generator: Ninja
cmake_flags: -DCMAKE_BUILD_TYPE=Release
- os: windows-2022
platform: windows
generator: 'Visual Studio 17 2022'
cmake_flags: -DCMAKE_CONFIGURATION_TYPES=Release
runs-on: ${{matrix.os}}
env:
SCCACHE_GHA_ENABLED: true
Expand Down Expand Up @@ -124,11 +116,6 @@ jobs:
run: |
echo "$HOME/Library/Python/${{env.PYTHON_VERSION}}/bin" >> $GITHUB_PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Setup Windows Python Env
if: ${{ matrix.build == 'python' && matrix.platform == 'windows' }}
run: |
python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/Python312/Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Config
run: >
cmake
Expand All @@ -142,11 +129,11 @@ jobs:
-DUSE_GLPK=OFF
-DUSE_HIGHS=OFF
-DUSE_SCIP=OFF
-DCMAKE_C_COMPILER_LAUNCHER=${{env.SCCACHE_PATH}}
-DCMAKE_CXX_COMPILER_LAUNCHER=${{env.SCCACHE_PATH}}
-DCMAKE_C_COMPILER_LAUNCHER="${{env.SCCACHE_PATH}}"
-DCMAKE_CXX_COMPILER_LAUNCHER="${{env.SCCACHE_PATH}}"
- name: Build
run: cmake --build build --config Release -j --target ${{ matrix.generator == 'Ninja' && 'all' || 'ALL_BUILD'}}
run: cmake --build build --config Release -j --target all
- name: Test
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: cmake --build build --config Release -j --target ${{ matrix.generator == 'Ninja' && 'test' || 'RUN_TESTS'}}
run: cmake --build build --config Release -j --target test
Loading