diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-07 15:57:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-07 20:46:25 +0900 |
commit | 7068255b0cc796cf39f2939873ccfcb971e79d0c (patch) | |
tree | bc8498b4a142728a3da16ef9f7d7ffd17ab9faa3 | |
parent | acd82cc31a8a74bbced2da6b635aebe1051963ae (diff) |
[MinGW] Run in sh
-rw-r--r-- | .github/workflows/mingw.yml | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 866b852916..35748f27b1 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -58,34 +58,28 @@ jobs: msys2: automake1.16 bison - name: set env run: | - $build_jobs = [int](2 * $env:NUMBER_OF_PROCESSORS) - $test_jobs = [int](1.5 * $env:NUMBER_OF_PROCESSORS) - Write-Output "GNUMAKEFLAGS=-j$build_jobs" >> $env:GITHUB_ENV - Write-Output "TEST_JOBS=$test_jobs" >> $env:GITHUB_ENV + echo "GNUMAKEFLAGS=-j$((2 * NUMBER_OF_PROCESSORS))" >> $GITHUB_ENV + echo "TEST_JOBS=$((15 * NUMBER_OF_PROCESSORS / 10))" >> $GITHUB_ENV + - name: where check run: | # show where - Write-Host - $where = 'gcc.exe', 'ragel.exe', 'make.exe', 'bison.exe', 'libcrypto-1_1-x64.dll', 'libssl-1_1-x64.dll' - foreach ($e in $where) { - $rslt = where.exe $e 2>&1 | Out-String - if ($rslt.contains($e)) { Write-Host $rslt } - else { Write-Host "`nCan't find $e" } - } + result=true + for e in gcc.exe ragel.exe make.exe bison.exe libcrypto-1_1-x64.dll libssl-1_1-x64.dll; do + echo + where $e || result=false + done + $result - name: autogen run: | ./autogen.sh working-directory: src - shell: sh - name: configure - run: | - $config_args = "--build=$env:CHOST --host=$env:CHOST --target=$env:CHOST" - Write-Host $config_args - sh -c "../src/configure --disable-install-doc --prefix=/. $config_args" - # Write-Host "-------------------------------------- config.log" - # Get-Content ./config.log | foreach {Write-Output $_} + run: > + ../src/configure --disable-install-doc --prefix=/. + --build=$CHOST --host=$CHOST --target=$CHOST - name: update run: | @@ -143,3 +137,4 @@ jobs: defaults: run: working-directory: build + shell: sh |