Skip to content

Commit f3592a3

Browse files
committed
fix workflow os for linux
1 parent 45af2c1 commit f3592a3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
build: [linux, windows, mac]
1818
include:
1919
- build: linux
20-
os: buildjet-8vcpu-ubuntu-2204
20+
os: ubuntu-latest
2121
rust: "stable"
2222
- build: windows
2323
os: windows-latest
@@ -29,6 +29,9 @@ jobs:
2929

3030
steps:
3131
- uses: actions/checkout@v4
32+
- name: Install system packages
33+
if: runner.os == 'Linux'
34+
run: sudo apt-get install libglib2.0-dev
3235
- name: Install Rust
3336
uses: dtolnay/rust-toolchain@stable
3437
with:
@@ -41,5 +44,6 @@ jobs:
4144
- name: Upload a Build Artifact
4245
uses: actions/upload-artifact@v4
4346
with:
44-
name: CI builds
45-
path: target/**/ornithe-installer-rs
47+
name: CI builds (${{ matrix.build }})
48+
path: |
49+
target/**/ornithe-installer-rs*

src/actions/mmc_pack.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ pub async fn install(
6868
zip.start_file("instance.cfg", SimpleFileOptions::default())?;
6969
let mut instance_cfg = INSTANCE_CONFIG.replace("${mc_version}", &version.id);
7070

71-
#[cfg(any(unix))]
72-
{
71+
if cfg!(all(any(unix), not(target_os = "macos"))) {
7372
instance_cfg += "\nOverrideCommands=true\nWrapperCommand=env __GL_THREADED_OPTIMIZATIONS=0";
7473
}
7574

0 commit comments

Comments
 (0)