From d54d566f8893b7fd3dc9a80493b96d94e877a552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=B5=AA=E7=86=8A=E7=8C=AB=E5=84=BF?= Date: Wed, 7 Aug 2024 03:37:26 +0000 Subject: [PATCH] !25 Gitee: tune apt install and ci tigger rule --- .workflow/ci-debian.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.workflow/ci-debian.yml b/.workflow/ci-debian.yml index bdc209b..81573f1 100644 --- a/.workflow/ci-debian.yml +++ b/.workflow/ci-debian.yml @@ -3,21 +3,32 @@ name: ci-debian displayName: ci-debian triggers: trigger: auto - pr: + push: branches: precise: - main - push: + paths: + precise: + - goldfish/ + - tests/ + - src/ + - xmake/packages/ + - xmake.lua + pr: branches: precise: - main - + paths: + precise: + - goldfish/ + - tests/ + - src/ + - xmake/packages/ + - xmake.lua variables: - XMAKE_MAIN_REPO: 'https://gitee.com/tboox/xmake-repo.git' - XMAKE_BINARY_REPO: 'https://gitee.com/xmake-mirror/build-artifacts.git' - XMAKE_ROOT: y - - + XMAKE_MAIN_REPO: https://gitee.com/tboox/xmake-repo.git + XMAKE_BINARY_REPO: https://gitee.com/xmake-mirror/build-artifacts.git + XMAKE_ROOT: 'y' stages: - name: build_and_test displayName: build_and_test @@ -27,21 +38,18 @@ stages: steps: - step: execute@docker name: execute_by_docker - displayName: 构建并测试金鱼Scheme + displayName: 构建并测试 certificate: '' image: hub.atomgit.com/amd64/debian:bookworm command: - bash .workflow/ustc_debian822_setup.sh - apt-get update - - apt-get install -y xmake git 7zip unzip curl build-essential + - apt-get install -y xmake git 7zip unzip curl g++ - xmake repo --update - sed -i '/github\.com/d' xmake/packages/s/s7/xmake.lua - sed -i '/github\.com/d' xmake/packages/t/tbox/xmake.lua - xmake build --yes -vD goldfish - bin/goldfish -l tests/test_all.scm - caches: [ - build/.build_cache, - ] notify: [] strategy: retry: '0'