From 51a6671726cfa804b6993ebe7e47f8ade791f374 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Thu, 25 Jan 2024 19:43:51 +0100 Subject: [PATCH] Fix bug in ts-controll; Add ci/cd --- .forgejo/workflows/build.yaml | 20 ++++++++++++++++++++ ts-control | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..12b3701 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,20 @@ +on: + push: +jobs: + build-artifacts: + runs-on: docker + steps: + - uses: https://code.forgejo.org/actions/checkout@v3 + - id: install-dependencies + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + shell: bash + - id: cargo-build-release + run: | + source "$HOME/.cargo/env" + cargo build --release + shell: bash + - uses: https://code.forgejo.org/actions/upload-artifact@v3 + with: + name: teamspeak-query-lib + path: ${{ github.workspace }}/target/release/teamspeak-query-lib diff --git a/ts-control b/ts-control index 8382a81..3c28369 100755 --- a/ts-control +++ b/ts-control @@ -66,7 +66,7 @@ case $action in ;; "back") teamspeak-query-lib update --back - ts_control_move_self + _ts_control_move_self teamspeak-query-lib update --microphone=true --speakers=true ;; "message")