From 65968fe3ee1de040aa8773645363d95544592f7a Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Thu, 28 Jul 2022 18:22:02 +0300 Subject: [PATCH] feat: test & build mt --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- Makefile | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66884b3..accd31e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - name: Install shards run: shards install - name: Run tests - run: make test + run: make test_all - name: Build run: make debug - name: Check formatting diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 526bc40..49c2361 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: echo "::set-output name=VERSION::$(shards version)" id: version - name: Build - run: make static + run: make static_mt - name: Make binary executable run: chmod +x bin/blahaj - name: Upload artifact diff --git a/Makefile b/Makefile index 37c060d..4941289 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,20 @@ build: static: shards build --production --release --no-debug --static +build_mt: + shards build --production --no-debug --release -Dpreview_mt + +static_mt: + shards build --production --no-debug --release -Dpreview_mt --static + +test_all: test test_mt + test: crystal spec --order random +test_mt: + crystal spec --order random -Dpreview_mt + install: install -D -m 0755 bin/blahaj $(PREFIX)/bin/blahaj