From bbafa6e03e98780eb8df02146c3373bee364857d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Fri, 18 Oct 2024 16:33:22 +0200 Subject: [PATCH] wip windows --- .github/workflows/windows.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 88387704..bc5625f1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -60,17 +60,18 @@ jobs: - name: Build continue-on-error: true - shell: bash + shell: cmd run: | cargo update -p sctgdesk-api-server - DATABASE_URL=sqlite://$(pwd)/db_v2.sqlite3 cargo build --target=${{ matrix.job.arch }} --release - cd target/${{ matrix.job.arch }}-pc-windows-msvc/release - 7z a -tzip /tmp/windows_c_${{ github.event.release.tag_name }}.zip hbbs.exe hbbr.exe rustdesk-utils.exe + set "DATABASE_URL=sqlite://%CD%/db_v2.sqlite3" + set "DATABASE_URL=sqlite://%CD%/db_v2.sqlite3" && cargo build --release --target ${{ matrix.job.arch }}-pc-windows-msvc + cd target\${{ matrix.job.arch }}-pc-windows-msvc\release + 7z a -tzip ..\..\..\windows_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip hbbs.exe hbbr.exe rustdesk-utils.exe - name: Attest artifacts uses: actions/attest-build-provenance@v1 with: - subject-path: '/tmp/windows_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip' + subject-path: '..\..\..\windows_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip' - name: Create Release with gh for Windows amd64 shell: bash @@ -80,9 +81,9 @@ jobs: export TAG_NAME=${{ github.event.release.tag_name }} export TAG_NAME=${TAG_NAME:-"nightly"} echo $TAG_NAME - mv /tmp/windows_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip /tmp/windows_${{ matrix.job.arch }}_$TAG_NAME.zip + mv windows_${{ matrix.job.arch }}_${{ github.event.release.tag_name }}.zip windows_${{ matrix.job.arch }}_$TAG_NAME.zip gh release create $TAG_NAME -t "$TAG_NAME" -n "$TAG_NAME" || true - gh release upload $TAG_NAME /tmp/windows_${{ matrix.job.arch }}_$TAG_NAME.zip --clobber + gh release upload $TAG_NAME windows_${{ matrix.job.arch }}_$TAG_NAME.zip --clobber - name: Attest release uses: actions/attest-build-provenance@v1