Upgrade toolchain and align runtime suites #11
This file contains hidden or 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: Native Server | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - stable | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| ORTOOLS_SERVER_IMAGE: ortools-wasm-native-server:ci | |
| jobs: | |
| docker-image: | |
| name: Build Docker image | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 90 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Setup Docker Buildx | |
| if: ${{ !env.ACT }} | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build native server image | |
| if: ${{ !env.ACT }} | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: server/Dockerfile | |
| tags: ${{ env.ORTOOLS_SERVER_IMAGE }} | |
| load: true | |
| cache-from: type=gha,scope=native-server | |
| cache-to: type=gha,mode=max,scope=native-server | |
| - name: Build native server image with local cache | |
| if: ${{ env.ACT }} | |
| run: docker build --file server/Dockerfile --tag "${ORTOOLS_SERVER_IMAGE}" . | |
| - name: Run native server tests | |
| run: docker compose -f server/docker-compose.yml run --rm ortools-native-test |