diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 7b24b59..dbd0374 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -69,15 +69,12 @@ jobs: - name: Cross-Build Linux x86_64 Release if: matrix.target == 'x86_64-unknown-linux-gnu' - uses: docker://ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main + uses: docker://rust:slim with: args: > sh -c " - export OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu - export OPENSSL_INCLUDE_DIR=/usr/include/openssl - export PKG_CONFIG_ALLOW_CROSS=1 - export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig - + apt-get update && apt-get install -y build-essential libssl-dev pkg-config gcc-x86-64-linux-gnu && + rustup target add x86_64-unknown-linux-gnu && cargo build --release --target x86_64-unknown-linux-gnu && mkdir -p release-artifacts && cp target/x86_64-unknown-linux-gnu/release/uptime-kuma-dashboard release-artifacts/uptime-kuma-dashboard-x86_64-unknown-linux-gnu && diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..22d5b4c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,31 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug executable 'uptime-kuma-dashboard'", + "type": "lldb", + "request": "launch", + "cargo": { + "args": [ + "run", + "-- --base-url=http://192.168.69.10:3001/ --slug formgen", + ] + }, + "args": [] + }, + { + "name": "Debug unit tests in executable 'uptime-kuma-dashboard'", + "type": "lldb", + "request": "launch", + "cargo": { + "args": [ + "test", + "--bin=uptime-kuma-dashboard" + ] + } + } + ] +}