1
0
Mirror von https://github.com/Chaoscaot/schemsearch synchronisiert 2024-11-19 10:20:08 +01:00

Add Makefile for easier building

Dieser Commit ist enthalten in:
Chaoscaot 2023-04-04 00:36:40 +02:00
Ursprung ef2755115c
Commit 1df33249c4
3 geänderte Dateien mit 27 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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

24
Makefile Normale Datei
Datei anzeigen

@ -0,0 +1,24 @@
default:
@echo "Building (Release)...";
cargo rustc --release --color=always -p schemsearch-cli -- -C target-feature=+avx2
debug:
@echo "Building (Debug)...";
cargo build -p schemsearch-cli
install: default
@echo "Installing...";
install -Dm755 target/release/schemsearch-cli /usr/bin/schemsearch
uninstall:
@echo "Uninstalling...";
rm -f /usr/bin/schemsearch
java:
@echo "Building Java...";
@echo "WARNING: This is WORK IN PROGRESS!";
javac SchemSearch.java
clean:
@echo "Cleaning...";
cargo clean