[MinGW] Run in sh
This commit is contained in:
parent
acd82cc31a
commit
7068255b0c
31
.github/workflows/mingw.yml
vendored
31
.github/workflows/mingw.yml
vendored
@ -58,34 +58,28 @@ jobs:
|
|||||||
msys2: automake1.16 bison
|
msys2: automake1.16 bison
|
||||||
- name: set env
|
- name: set env
|
||||||
run: |
|
run: |
|
||||||
$build_jobs = [int](2 * $env:NUMBER_OF_PROCESSORS)
|
echo "GNUMAKEFLAGS=-j$((2 * NUMBER_OF_PROCESSORS))" >> $GITHUB_ENV
|
||||||
$test_jobs = [int](1.5 * $env:NUMBER_OF_PROCESSORS)
|
echo "TEST_JOBS=$((15 * NUMBER_OF_PROCESSORS / 10))" >> $GITHUB_ENV
|
||||||
Write-Output "GNUMAKEFLAGS=-j$build_jobs" >> $env:GITHUB_ENV
|
|
||||||
Write-Output "TEST_JOBS=$test_jobs" >> $env:GITHUB_ENV
|
|
||||||
- name: where check
|
- name: where check
|
||||||
run: |
|
run: |
|
||||||
# show where
|
# show where
|
||||||
Write-Host
|
result=true
|
||||||
$where = 'gcc.exe', 'ragel.exe', 'make.exe', 'bison.exe', 'libcrypto-1_1-x64.dll', 'libssl-1_1-x64.dll'
|
for e in gcc.exe ragel.exe make.exe bison.exe libcrypto-1_1-x64.dll libssl-1_1-x64.dll; do
|
||||||
foreach ($e in $where) {
|
echo
|
||||||
$rslt = where.exe $e 2>&1 | Out-String
|
where $e || result=false
|
||||||
if ($rslt.contains($e)) { Write-Host $rslt }
|
done
|
||||||
else { Write-Host "`nCan't find $e" }
|
$result
|
||||||
}
|
|
||||||
|
|
||||||
- name: autogen
|
- name: autogen
|
||||||
run: |
|
run: |
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
working-directory: src
|
working-directory: src
|
||||||
shell: sh
|
|
||||||
|
|
||||||
- name: configure
|
- name: configure
|
||||||
run: |
|
run: >
|
||||||
$config_args = "--build=$env:CHOST --host=$env:CHOST --target=$env:CHOST"
|
../src/configure --disable-install-doc --prefix=/.
|
||||||
Write-Host $config_args
|
--build=$CHOST --host=$CHOST --target=$CHOST
|
||||||
sh -c "../src/configure --disable-install-doc --prefix=/. $config_args"
|
|
||||||
# Write-Host "-------------------------------------- config.log"
|
|
||||||
# Get-Content ./config.log | foreach {Write-Output $_}
|
|
||||||
|
|
||||||
- name: update
|
- name: update
|
||||||
run: |
|
run: |
|
||||||
@ -143,3 +137,4 @@ jobs:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
shell: sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user