-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!29 Add ci on ubuntu 20.04 for Gitee
- Loading branch information
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
version: '1.0' | ||
name: ci-ubuntu | ||
displayName: ci-ubuntu | ||
triggers: | ||
trigger: auto | ||
pr: | ||
branches: | ||
precise: | ||
- main | ||
paths: | ||
precise: | ||
- goldfish/ | ||
- tests/ | ||
- src/ | ||
- xmake/packages/ | ||
- xmake.lua | ||
- .workflow/ | ||
push: | ||
branches: | ||
precise: | ||
- main | ||
paths: | ||
precise: | ||
- goldfish/ | ||
- tests/ | ||
- src/ | ||
- xmake/packages/ | ||
- xmake.lua | ||
- .workflow/ | ||
|
||
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 | ||
|
||
|
||
stages: | ||
- name: build_and_test | ||
displayName: build_and_test | ||
strategy: fast | ||
trigger: auto | ||
executor: [] | ||
steps: | ||
- step: build@gcc | ||
name: build | ||
displayName: Build and Test | ||
gccVersion: '8.4' | ||
commands: | ||
- wget https://gitee.com/XmacsLabs/mogan/attach_files/1813514/download -O /tmp/xmake.deb | ||
- sha1sum /tmp/xmake.deb | grep ac3629bd0fa66f179aef35dc00b7a1c89735651a | ||
- apt install /tmp/xmake.deb | ||
- sed -i '/github\.com/d' xmake/packages/s/s7/xmake.lua | ||
- 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 config --tbox=y --yes -vD | ||
- xmake build --yes -vD goldfish | ||
- bin/goldfish -l tests/test_all.scm | ||
caches: [ | ||
~/.xmake/packages | ||
] | ||
notify: [] | ||
strategy: | ||
retry: '0' | ||
stepTimeout: 15 |
This file contains 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