mirror of
https://github.com/GeopJr/BLAHAJ.git
synced 2025-01-22 08:36:30 +01:00
feat: test & build mt
This commit is contained in:
parent
22a6cf7985
commit
65968fe3ee
3 changed files with 13 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
11
Makefile
11
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue