Skip to content

Commit

Permalink
Set LC_ALL env var to prevent sbt/sbt-assembly#496
Browse files Browse the repository at this point in the history
  • Loading branch information
Akirathan committed Nov 17, 2023
1 parent ffb40a4 commit 172610f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- run: ./run backend get
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LC_ALL: C.UTF-8
- if: failure() && runner.os == 'Windows'
name: List files if failed (Windows)
run: Get-ChildItem -Force -Recurse
Expand Down Expand Up @@ -112,6 +113,7 @@ jobs:
- run: ./run backend get
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LC_ALL: C.UTF-8
- if: failure() && runner.os == 'Windows'
name: List files if failed (Windows)
run: Get-ChildItem -Force -Recurse
Expand Down Expand Up @@ -170,6 +172,7 @@ jobs:
- run: ./run backend get
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LC_ALL: C.UTF-8
- if: failure() && runner.os == 'Windows'
name: List files if failed (Windows)
run: Get-ChildItem -Force -Recurse
Expand Down
7 changes: 6 additions & 1 deletion build/build/src/ci_gen/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ impl JobArchetype for BuildWasm {
pub struct BuildBackend;
impl JobArchetype for BuildBackend {
fn job(&self, os: OS) -> Job {
plain_job(&os, "Build Backend", "backend get")
plain_job_customized(&os, "Build Backend", "backend get", |step| {
let step = step
// This prevents https://github.com/sbt/sbt-assembly/issues/496
.with_env("LC_ALL", "C.UTF-8");
vec![step]
})
}
}

Expand Down

0 comments on commit 172610f

Please sign in to comment.