Add Makefile for easier building

This commit is contained in:
Chaoscaot
2023-04-04 00:36:40 +02:00
parent ef2755115c
commit 1df33249c4
3 changed files with 27 additions and 3 deletions

View File

@ -27,7 +27,7 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build
run: cargo build --verbose
run: make debug
- name: Run tests
run: cargo test --verbose -p schemsearch-lib
@ -46,7 +46,7 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build
run: cargo build --verbose --release -p schemsearch-cli
run: make
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:

View File

@ -30,7 +30,7 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build
run: cargo build --verbose --release -p schemsearch-cli
run: make
- name: Create Tarball
if: ${{ matrix.os != 'windows-latest' }}
run: tar -czvf schemsearch-cli-${{ matrix.os }}.tar.gz -C target/release schemsearch-cli