feat: test & build mt

This commit is contained in:
Evangelos Paterakis 2022-07-28 18:22:02 +03:00
parent 22a6cf7985
commit 65968fe3ee
No known key found for this signature in database
GPG key ID: FE5185F095BFC8C9
3 changed files with 13 additions and 2 deletions

View file

@ -11,7 +11,7 @@ jobs:
- name: Install shards - name: Install shards
run: shards install run: shards install
- name: Run tests - name: Run tests
run: make test run: make test_all
- name: Build - name: Build
run: make debug run: make debug
- name: Check formatting - name: Check formatting

View file

@ -13,7 +13,7 @@ jobs:
echo "::set-output name=VERSION::$(shards version)" echo "::set-output name=VERSION::$(shards version)"
id: version id: version
- name: Build - name: Build
run: make static run: make static_mt
- name: Make binary executable - name: Make binary executable
run: chmod +x bin/blahaj run: chmod +x bin/blahaj
- name: Upload artifact - name: Upload artifact

View file

@ -12,9 +12,20 @@ build:
static: static:
shards build --production --release --no-debug --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: test:
crystal spec --order random crystal spec --order random
test_mt:
crystal spec --order random -Dpreview_mt
install: install:
install -D -m 0755 bin/blahaj $(PREFIX)/bin/blahaj install -D -m 0755 bin/blahaj $(PREFIX)/bin/blahaj