Improve building
This commit is contained in:
parent
7694bf365c
commit
c493a92246
2 changed files with 14 additions and 1 deletions
|
@ -5,17 +5,25 @@ on:
|
|||
jobs:
|
||||
build-upload:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- id: install-dependencies
|
||||
run: |
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
apt update
|
||||
apt install -y ruby ruby-dev
|
||||
gem install bashly
|
||||
shell: bash
|
||||
- id: cargo-build-release
|
||||
run: |
|
||||
source "$HOME/.cargo/env"
|
||||
cargo build --release
|
||||
shell: bash
|
||||
- id: bashly-generate
|
||||
run: |
|
||||
bashly generate
|
||||
- id: copy-ts-control-artificat
|
||||
run: |
|
||||
cp ${{ github.workspace }}/target/release/teamspeak-query-lib /tmp/artifacts
|
||||
|
|
7
Makefile
7
Makefile
|
@ -4,13 +4,18 @@ INSTALL_DIR = $(HOME)/.local/bin
|
|||
|
||||
export PATH := target/debug:$(PATH)
|
||||
|
||||
.FORCE:
|
||||
|
||||
build:
|
||||
@cargo build
|
||||
|
||||
run: build
|
||||
./ts-control
|
||||
|
||||
install:
|
||||
./ts-control: .FORCE
|
||||
bashly generate
|
||||
|
||||
install: ./ts-control
|
||||
mkdir -p "$(INSTALL_DIR)"
|
||||
cargo build --release
|
||||
install -Dm755 -t "$(INSTALL_DIR)" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue