diff --git a/.github/workflows/master-build.yml b/.github/workflows/master-build.yml new file mode 100644 index 0000000..70320f4 --- /dev/null +++ b/.github/workflows/master-build.yml @@ -0,0 +1,23 @@ +name: Master Build + +on: + push: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build-realease: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose --release + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.2 + with: + name: schemsearch-cli + path: target/release/schemsearch-cli diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 0000000..8841575 --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,29 @@ +name: Release Build + +on: + release: + types: + - published + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose --release + - name: Create Tarball + run: tar -czvf schemsearch-cli.tar.gz -C target/release schemsearch-cli + - name: upload linux artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ steps.published_release.outputs.upload_url }} + asset_path: schemsearch-cli.tar.gz + asset_name: schemsearch-cli-linux.tar.gz + asset_content_type: application/gzip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5cbe8bc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Build and Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose diff --git a/README.md b/README.md index ff99acd..2b33fe1 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ cargo build --release ### Features: schemsearch-sql This feature is not enabled by default as it is a specific implementation for the SteamWar.de Minecraft server. -You shouldn't enable this feature unless you know what you are doing. +**You shouldn't enable this feature unless you know what you are doing.** --- ## License -This project is licensed under the AGPL-3.0 License. See the [LICENSE](LICENSE) file for details. +This project is licensed under the AGPL-3.0 License. See the [LICENSE](LICENSE.txt) file for details.