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:
Ursprung
ef2755115c
Commit
1df33249c4
4
.github/workflows/master-build.yml
vendored
4
.github/workflows/master-build.yml
vendored
@ -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:
|
||||
|
2
.github/workflows/release-build.yml
vendored
2
.github/workflows/release-build.yml
vendored
@ -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
|
||||
|
24
Makefile
Normale Datei
24
Makefile
Normale Datei
@ -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
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren