From c91beb830661a0a0eb262c5b4535ac6ed3d64564 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 6 Dec 2019 23:45:35 +0100 Subject: [PATCH] Add CI --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6f203fe --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +# http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry +# The docker tag is the first 6 letters of the Git commit id + +job_build_dotnet: + stage: build + image: archlinux/base:latest + variables: + GIT_SUBMODULE_STRATEGY: recursive + script: + - pacman-key --init + - pacman-key --recv-keys 3FABB87C7C9F7E5FF2B6CB7B11A7E7E4DB9351DE + - pacman-key --lsign-key 3FABB87C7C9F7E5FF2B6CB7B11A7E7E4DB9351DE + - bash -c "echo -e '"'[zotancc]\nServer = https://arch.zotan.cc/zotancc/os/$arch'"' >> /etc/pacman.conf" + - pacman -Syu --needed dotnet-sdk-bin --noconfirm + - curl -Lo warp-packer https://github.com/dgiagio/warp/releases/download/v0.3.0/linux-x64.warp-packer && chmod +x warp-packer + - dotnet publish -c Release -r linux-x64 + - dotnet publish -c Release -r osx-x64 + - ./warp-packer --arch linux-x64 --input_dir tgcli.core/bin/Release/netcoreapp3.1/linux-x64/publish --exec tgcli --output tgcli.linux.run + - ./warp-packer --arch macos-x64 --input_dir tgcli.core/bin/Release/netcoreapp3.1/osx-x64/publish --exec tgcli --output tgcli.macos.run + - chmod +x tgcli.linux.run tgcli.macos.run + artifacts: + paths: + - tgcli.linux.run + - tgcli.macos.run