Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
KCarretto committed Feb 8, 2024
1 parent 17c48de commit 3b043fe
Showing 1 changed file with 37 additions and 16 deletions.
53 changes: 37 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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

####################################################################################
Expand All @@ -90,16 +90,19 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand All @@ -116,16 +119,19 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand Down Expand Up @@ -154,19 +160,25 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand All @@ -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

####################################################################################
Expand All @@ -202,16 +214,19 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand All @@ -228,16 +243,19 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand Down Expand Up @@ -266,14 +284,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 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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

0 comments on commit 3b043fe

Please sign in to comment.