diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-19 12:11:12 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-06-19 12:14:05 -0700 |
| commit | 211ecad3787e7245e9bd455bb7269ea9e8674a2b (patch) | |
| tree | 66d3cf3f0730a58c15781d5534eb75bf49dec252 | |
| parent | 72d22dfc73e342d0754fcfb6ce5b13c80edffecb (diff) | |
Add builds.sr.ht continuous build
| -rw-r--r-- | .build.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 00000000..a5355577 --- /dev/null +++ b/.build.yml @@ -0,0 +1,46 @@ +image: alpine/edge +packages: +- bison +- libarchive-tools +- lua5.2 +- nasm +- ncurses +- ninja +- tzdata +- wayland-dev +sources: +- https://github.com/michaelforney/oasis +secrets: +- 0d338ffe-699f-4e82-85a0-3a4407172bed +environment: + PATH: $HOME/toolchain/bin:$HOME/oasis/out/pkg/texi2mdoc:$PATH + PAXREAD: '"bsdtar -x -f -"' + GIT_SSH_COMMAND: '"ssh -o StrictHostKeyChecking=no"' + SETS: '"core desktop devel extra media net"' +tasks: +- setup: | + git config --global user.name oasis + git config --global user.email oasis + git clone --mirror --no-single-branch --depth 1 https://github.com/oasislinux/root-x86_64 + git clone --depth 1 https://github.com/oasislinux/toolchain +- build: | + cd oasis + cat >config.lua <<EOF + local sets = dofile 'sets.lua' + local set = os.getenv('SET') + return { + builddir='out', + fs={{sets[set], exclude={'^include/', '^lib/.*%.a$'}}}, + target={toolchain='x86_64-linux-musl', cflags='-O2 -pipe -fpie', cxxflags='\$target_cflags', ldflags='-s -static -pie', pie=true}, + host={toolchain='default', cflags='-pipe', ldflags=''}, + repo={path='$HOME/root-x86_64.git', flags='--bare', tag='tree', branch=set}, + } + EOF + export SET + for SET in $SETS ; do + lua5.2 setup.lua + ninja out/pkg/texi2mdoc/texi2mdoc + ninja commit + done +- deploy: | + git -C root-x86_64.git push git@github.com:oasislinux/root-x86_64 $SETS |
