From 4a66a0d2f6992a4f22ebda0a059be19a8161c494 Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Tue, 26 Dec 2023 17:36:39 +0800 Subject: [PATCH] Build nightly on avx2, test on avx512 --- .github/workflows/release.yml | 6 +++--- .github/workflows/tests.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 285fff8016..eca6565958 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,14 +2,14 @@ name: release on: schedule: - - cron: '*/30 * * * *' # This schedule runs every night at midnight UTC + - cron: '0 0 * * *' # This schedule runs every night at midnight UTC push: tags: - "v*.*.*" # normal release jobs: release: - runs-on: self-hosted + runs-on: [ "self-hosted", "avx2" ] steps: - name: Ensure workspace ownership run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE @@ -40,7 +40,7 @@ jobs: sudo docker rm -f infinity_build && sudo docker run -d --name infinity_build --network=host -e TZ=$TZ -v $PWD:/infinity infiniflow/infinity_builder:centos7 - name: Build release version - run: sudo docker exec infinity_build bash -c "cd /infinity && rm -fr cmake-build-release && mkdir -p cmake-build-release && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=amd64 -S /infinity -B /infinity/cmake-build-release && cmake --build /infinity/cmake-build-release" + run: sudo docker exec infinity_build bash -c "cd /infinity && rm -fr cmake-build-release && mkdir -p cmake-build-release && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=amd64 -DCMAKE_JOB_POOL_LINK:STRING=link_pool -DCMAKE_JOB_POOLS:STRING=link_pool=1 -S /infinity -B /infinity/cmake-build-release && cmake --build /infinity/cmake-build-release" - name: Build RPM and DEB run: sudo docker exec infinity_build bash -c "cd /infinity/cmake-build-release && cpack" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ddebda8b62..f85758a8ea 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ on: jobs: tests: name: tests - runs-on: self-hosted + runs-on: [ "self-hosted", "avx512" ] steps: - name: Ensure workspace ownership run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE