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 3b043fe commit 5437638
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,12 @@ jobs:
####################################################################################

###
# ALL PLATFORMS
# LINUX
###
upload_tavern:
name: 🚀 Release Tavern Assets
needs: create_release # Depends on release being created for upload URL
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⚡ Setup Golang
Expand All @@ -62,7 +56,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_name: tavern-${{ matrix.config.os }}
asset_name: tavern
asset_path: ${{ runner.temp }}/realm_build/tavern
asset_content_type: application/octet-stream

Expand All @@ -78,6 +72,7 @@ jobs:
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🛠️ Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -112,6 +107,7 @@ jobs:
needs: create_release # Depends on release being created for upload URL
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: 🛠️ Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -141,10 +137,10 @@ jobs:
needs: create_release # Depends on release being created for upload URL
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: 👾 Disable defender
shell: powershell
run: start-process -filepath powershell -ArgumentList '/c','Set-MpPreference -DisableRealtimeMonitoring $true' -verb RunAs
- uses: actions/checkout@v3
- name: 🛠️ Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -202,6 +198,7 @@ jobs:
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🛠️ Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -236,6 +233,7 @@ jobs:
needs: create_release # Depends on release being created for upload URL
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: 🛠️ Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -265,10 +263,10 @@ jobs:
needs: create_release # Depends on release being created for upload URL
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: 👾 Disable defender
shell: powershell
run: start-process -filepath powershell -ArgumentList '/c','Set-MpPreference -DisableRealtimeMonitoring $true' -verb RunAs
- uses: actions/checkout@v3
- name: 🛠️ Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions implants/lib/eldritch/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::env;
use std::path::PathBuf;
use which::which;

#[cfg(target_os = "windows")]
#[cfg(all(target_os = "windows", debug_assertions))]
fn build_bin_create_file_dll() {
use std::{
io::{BufRead, BufReader},
Expand Down Expand Up @@ -134,7 +134,7 @@ fn main() -> Result<()> {
build_proto()?;
#[cfg(target_os = "windows")]
build_bin_create_file_dll();
#[cfg(target_os = "windows")]
#[cfg(all(target_os = "windows", debug_assertions))]
build_bin_reflective_loader();

Ok(())
Expand Down

0 comments on commit 5437638

Please sign in to comment.