cleanup CI, fix unrecognized --strip

This commit is contained in:
Anton-4 2023-09-27 11:36:43 +02:00 committed by Brendan Hansknecht
parent 82a6c4e519
commit 90865c6b51
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
4 changed files with 7 additions and 11 deletions

View file

@ -1,5 +1,5 @@
on: on:
pull_request: #pull_request:
name: Macos x86-64 rust tests name: Macos x86-64 rust tests
@ -22,10 +22,6 @@ jobs:
- name: set LLVM_SYS_160_PREFIX - name: set LLVM_SYS_160_PREFIX
run: echo "LLVM_SYS_160_PREFIX=$(brew --prefix llvm@16)" >> $GITHUB_ENV run: echo "LLVM_SYS_160_PREFIX=$(brew --prefix llvm@16)" >> $GITHUB_ENV
- run: echo $LLVM_SYS_160_PREFIX
- run: ls $LLVM_SYS_160_PREFIX
- name: Update PATH to use zig 11 - name: Update PATH to use zig 11
run: | run: |
echo "PATH=/Users/username1/Downloads/zig-macos-x86_64-0.11.0:$PATH" >> $GITHUB_ENV echo "PATH=/Users/username1/Downloads/zig-macos-x86_64-0.11.0:$PATH" >> $GITHUB_ENV

View file

@ -1,5 +1,5 @@
on: on:
#pull_request: pull_request:
name: Nix linux x86_64 cargo test name: Nix linux x86_64 cargo test

View file

@ -295,7 +295,7 @@ pub fn build_zig_host_wasm32(
"wasm32-wasi", "wasm32-wasi",
// "-femit-llvm-ir=/home/folkertdev/roc/roc/crates/cli_testing_examples/benchmarks/platform/host.ll", // "-femit-llvm-ir=/home/folkertdev/roc/roc/crates/cli_testing_examples/benchmarks/platform/host.ll",
"-fPIC", "-fPIC",
"--strip", "-fstrip",
]); ]);
if matches!(opt_level, OptLevel::Optimize) { if matches!(opt_level, OptLevel::Optimize) {
@ -1212,7 +1212,7 @@ fn link_wasm32(
&format!("glue::{}", find_zig_glue_path().to_str().unwrap()), &format!("glue::{}", find_zig_glue_path().to_str().unwrap()),
"--deps", "--deps",
"glue", "glue",
"--strip", "-fstrip",
"-O", "-O",
"ReleaseSmall", "ReleaseSmall",
// useful for debugging // useful for debugging

View file

@ -1669,7 +1669,7 @@ mod test {
"app.zig", "app.zig",
"-target", "-target",
"x86_64-windows-gnu", "x86_64-windows-gnu",
"--strip", "-fstrip",
"-rdynamic", "-rdynamic",
"-OReleaseFast", "-OReleaseFast",
]) ])
@ -1707,7 +1707,7 @@ mod test {
"-target", "-target",
"x86_64-windows-gnu", "x86_64-windows-gnu",
"-rdynamic", "-rdynamic",
"--strip", "-fstrip",
"-rdynamic", "-rdynamic",
"-OReleaseFast", "-OReleaseFast",
]); ]);
@ -1929,7 +1929,7 @@ mod test {
"-target", "-target",
"x86_64-windows-gnu", "x86_64-windows-gnu",
"-rdynamic", "-rdynamic",
"--strip", "-fstrip",
"-OReleaseFast", "-OReleaseFast",
]); ]);