Skip to content

Commit

Permalink
add ninja flags
Browse files Browse the repository at this point in the history
  • Loading branch information
assignUser committed Feb 14, 2024
1 parent 992e5db commit aee1fbc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,20 @@ concurrency:

jobs:
build:
runs-on: ${{ matrix.runner }}
runs-on: ${{ matrix.runner }}
container: ghcr.io/facebookincubator/velox-dev:circleci-avx
name: "Linux ${{ matrix.type }} Build on ${{ matrix.runner }}"
strategy:
fail-fast: false
matrix:
type: ["release", "debug"]
runner: ["8-core", "ubuntu-latest"]
runner: ["8-core"]
env:
CC: /opt/rh/gcc-toolset-9/root/bin/gcc
CXX: /opt/rh/gcc-toolset-9/root/bin/g++
CCACHE_DIR: ".ccache"
IMAGE: "ghcr.io/facebookincubator/velox-dev:circleci-avx"
DOCKER_CMD: "docker run --ulimit memlock=-1 -v .:/velox -w /velox -e CC -e CXX -e CCACHE_DIR --rm ghcr.io/facebookincubator/velox-dev:circleci-avx"
CCACHE_DIR: "${{ github.workspace } /.ccache"
CCACHE_BASEDIR: "${{ github.workspace }}"
MAKEFLAGS: 'NUM_THREADS=8 MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=4'
defaults:
run:
shell: bash
Expand All @@ -67,13 +68,12 @@ jobs:
restore-keys: ccache-linux-${{ matrix.type }}
- run: |
mkdir -p .ccache
sudo apt update && sudo apt install ccache
- name: Minimal, no tests
run: |
df -h .
du -sh .
ccache -s
$DOCKER_CMD make VELOX_BUILD_MINIMAL=ON VELOX_BUILD_TESTING=OFF '${{ matrix.type }}'
make VELOX_BUILD_MINIMAL=ON VELOX_BUILD_TESTING=OFF '${{ matrix.type }}'
df -h .
du -sh .
ccache -s
Expand All @@ -82,16 +82,16 @@ jobs:
df -h .
du -sh .
ccache -s
$DOCKER_CMD make VELOX_BUILD_TESTING=OFF release '${{ matrix.type }}'
make VELOX_BUILD_TESTING=OFF release '${{ matrix.type }}'
df -h .
du -sh .
ccache -s
- run: |
df -h .
du -sh .
ccache -s
$DOCKER_CMD make '${{ matrix.type }}'
$DOCKER_CMD velox make unittest
make '${{ matrix.type }}'
make unittest
df -h .
du -sh .
ccache -s
Expand Down

0 comments on commit aee1fbc

Please sign in to comment.