Skip to content

Commit

Permalink
!29 Add ci on ubuntu 20.04 for Gitee
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Aug 9, 2024
1 parent 53b50e8 commit 9913734
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .workflow/ci-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '1.0'
name: ci-debian
displayName: ci-debian
triggers:
trigger: auto
trigger: manual
push:
branches:
precise:
Expand Down
65 changes: 65 additions & 0 deletions .workflow/ci-ubuntu.yml
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
4 changes: 4 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ end

target ("goldfish") do
set_languages("c++98")
if is_plat("linux") then
-- for Ubuntu 20.04
add_syslinks("stdc++")
end
set_targetdir("$(projectdir)/bin/")
add_files ("src/goldfish.cpp")
add_packages("s7")
Expand Down

0 comments on commit 9913734

Please sign in to comment.