From 3b043fe62ef038e3875174dfbacc98687f49be4c Mon Sep 17 00:00:00 2001 From: KCarretto Date: Thu, 8 Feb 2024 19:30:02 +0000 Subject: [PATCH] fix release --- .github/workflows/release.yml | 53 ++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1d6f1a05..253337c83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,7 +55,7 @@ jobs: go-version-file: go.mod cache: true - name: 🔨 Build - run: go build -ldflags='-w -extldflags "-static"' -o /build/tavern ./tavern + run: go build -ldflags='-w -extldflags "-static"' -o ${{ runner.temp }}/realm_build/tavern ./tavern - name: 🌥️⬆️ Upload Assets uses: actions/upload-release-asset@v1 env: @@ -63,7 +63,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: tavern-${{ matrix.config.os }} - asset_path: /build/tavern + asset_path: ${{ runner.temp }}/realm_build/tavern asset_content_type: application/octet-stream #################################################################################### @@ -90,8 +90,11 @@ jobs: sudo apt update && \ sudo apt install -y musl-tools - name: 🔨 Build Imix + run: cargo build --bin=imix --release --target=x86_64-unknown-linux-musl working-directory: ./implants/imix - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --bin=imix --release --target=x86_64-unknown-linux-musl + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🌥️⬆️ Upload Imix uses: actions/upload-release-asset@v1 env: @@ -99,7 +102,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: imix-x86_64-unknown-linux-musl - asset_path: /build/x86_64-unknown-linux-musl/release/imix + asset_path: ${{ runner.temp }}/realm_build/x86_64-unknown-linux-musl/release/imix asset_content_type: application/octet-stream ### # MACOS @@ -116,8 +119,11 @@ jobs: default: true profile: minimal - name: 🔨 Build Imix + run: cargo build --bin=imix --release --target=x86_64-apple-darwin working-directory: ./implants/imix - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --bin=imix --release --target=x86_64-apple-darwin + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🌥️⬆️ Upload Imix uses: actions/upload-release-asset@v1 env: @@ -125,7 +131,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: imix-x86_64-apple-darwin - asset_path: /build/x86_64-apple-darwin/release/imix + asset_path: ${{ runner.temp }}/realm_build/x86_64-apple-darwin/release/imix asset_content_type: application/octet-stream ### # WINDOWS @@ -154,11 +160,17 @@ jobs: working-directory: ./bin/reflective_loader/ run: cargo build --release --target=x86_64-pc-windows-msvc -Z build-std=core,compiler_builtins -Z build-std-features=compiler-builtins-mem - name: 🔨 Build Imix + run: cargo build --bin=imix --release --target=x86_64-pc-windows-msvc working-directory: ./implants/imix - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --bin=imix --release --target=x86_64-pc-windows-msvc + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🔨 Build Imix (DLL) + run: cargo build --lib --release working-directory: ./implants/imix - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --lib --release + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🌥️⬆️ Upload Imix uses: actions/upload-release-asset@v1 env: @@ -166,7 +178,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: imix-x86_64-pc-windows-msvc.exe - asset_path: /build/x86_64-pc-windows-msvc/release/imix.exe + asset_path: ${{ runner.temp }}/realm_build/x86_64-pc-windows-msvc/release/imix.exe asset_content_type: application/octet-stream - name: 🌥️⬆️ Upload Imix (DLL) uses: actions/upload-release-asset@v1 @@ -175,7 +187,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: imix-x86_64-pc-windows-msvc.dll - asset_path: /build/x86_64-pc-windows-msvc/release/imix.dll + asset_path: ${{ runner.temp }}/realm_build/x86_64-pc-windows-msvc/release/imix.dll asset_content_type: application/octet-stream #################################################################################### @@ -202,8 +214,11 @@ jobs: sudo apt update && \ sudo apt install -y musl-tools - name: 🔨 Build Golem + run: cargo build --bin=golem --release --target=x86_64-unknown-linux-musl working-directory: ./implants/golem - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --bin=golem --release --target=x86_64-unknown-linux-musl + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🌥️⬆️ Upload Golem uses: actions/upload-release-asset@v1 env: @@ -211,7 +226,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: golem-x86_64-unknown-linux-musl - asset_path: /build/x86_64-unknown-linux-musl/release/golem + asset_path: ${{ runner.temp }}/realm_build/x86_64-unknown-linux-musl/release/golem asset_content_type: application/octet-stream ### # MACOS @@ -228,8 +243,11 @@ jobs: default: true profile: minimal - name: 🔨 Build Golem + run: cargo build --bin=golem --release --target=x86_64-apple-darwin working-directory: ./implants/golem - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --bin=golem --release --target=x86_64-apple-darwin + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🌥️⬆️ Upload Golem uses: actions/upload-release-asset@v1 env: @@ -237,7 +255,7 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: golem-x86_64-apple-darwin - asset_path: /build/x86_64-apple-darwin/release/golem + asset_path: ${{ runner.temp }}/realm_build/x86_64-apple-darwin/release/golem asset_content_type: application/octet-stream ### # WINDOWS @@ -266,8 +284,11 @@ jobs: working-directory: ./bin/reflective_loader/ run: cargo build --release --target=x86_64-pc-windows-msvc -Z build-std=core,compiler_builtins -Z build-std-features=compiler-builtins-mem - name: 🔨 Build Golem + run: cargo build --bin=golem --release --target=x86_64-pc-windows-msvc working-directory: ./implants/golem - run: CARGO_TARGET_DIR=/build RUSTFLAGS="-C target-feature=+crt-static" cargo build --bin=golem --release --target=x86_64-pc-windows-msvc + env: + CARGO_TARGET_DIR: ${{ runner.temp }}/realm_build + RUSTFLAGS: "-C target-feature=+crt-static" - name: 🌥️⬆️ Upload Golem uses: actions/upload-release-asset@v1 env: @@ -275,5 +296,5 @@ jobs: with: upload_url: ${{ needs.create_release.outputs.upload_url }} asset_name: golem-x86_64-pc-windows-msvc.exe - asset_path: /build/x86_64-pc-windows-msvc/release/golem.exe + asset_path: ${{ runner.temp }}/realm_build/x86_64-pc-windows-msvc/release/golem.exe asset_content_type: application/octet-stream