Skip to content

Commit

Permalink
Set CI vars in GH workflow file (#4263)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauwming authored Jan 24, 2025
1 parent cdb1294 commit de3f2e1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
pull_request:
types: [opened, synchronize, reopened]
env:
CI_ARGS: ${{ vars.CI_UBUNTU_ARGS }}
CI_MODE: ${{ vars.CI_MODE }}
CI_ARGS: -w 3 --shuffle --stdout-buf 1
CI_MODE: --ci-mode
MAKE_FAST: make -j 3
jobs:
default-build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
pull_request:
types: [opened, synchronize, reopened]
env:
CI_ARGS: ${{ vars.CI_MAC_ARGS }}
CI_MODE: ${{ vars.CI_MODE }}
CI_ARGS: -w 2 --shuffle --stdout-buf 1
CI_MODE: --ci-mode
MAKE_FAST: make -j 2
jobs:
default-build:
Expand Down
33 changes: 23 additions & 10 deletions .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
- 'master'
pull_request:
types: [opened, synchronize, reopened]
env:
CI_WIN_ARGS: -w 3 --shuffle
CI_MODE: --ci-mode
jobs:
default:
runs-on: windows-latest
Expand Down Expand Up @@ -82,21 +85,24 @@ jobs:
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd pjlib/bin
./pjlib-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }} ${{ vars.CI_MODE }}
$args = $env:CI_WIN_ARGS -split ' '
./pjlib-test-i386-Win32-vc14-Release.exe $args $env:CI_MODE
shell: powershell
- name: pjlib-util-test
run: |
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd pjlib-util/bin
./pjlib-util-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjlib-util-test-i386-Win32-vc14-Release.exe $args
shell: powershell
- name: pjmedia-test
run: |
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd pjmedia/bin
./pjmedia-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjmedia-test-i386-Win32-vc14-Release.exe $args
shell: powershell

openssl-2:
Expand Down Expand Up @@ -161,7 +167,8 @@ jobs:
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd pjsip/bin
./pjsip-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjsip-test-i386-Win32-vc14-Release.exe $args
shell: powershell
- name: python pjsua tests
run: |
Expand Down Expand Up @@ -214,7 +221,8 @@ jobs:
$env:OPENSSL_DIR = Get-Content .\openssl_dir.txt
$env:PATH+=";$env:OPENSSL_DIR\bin"
cd pjnath/bin
./pjnath-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjnath-test-i386-Win32-vc14-Release.exe $args
shell: powershell

gnu-tls:
Expand Down Expand Up @@ -333,28 +341,32 @@ jobs:
$env:SDL_DIR = Get-Content .\sdl_dir.txt
$env:PATH+=";$env:SDL_DIR\lib\x86;"
cd pjlib/bin
./pjlib-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }} ${{ vars.CI_MODE }}
$args = $env:CI_WIN_ARGS -split ' '
./pjlib-test-i386-Win32-vc14-Release.exe $args $env:CI_MODE
shell: powershell
- name: pjlib-util-test
run: |
$env:SDL_DIR = Get-Content .\sdl_dir.txt
$env:PATH+=";$env:SDL_DIR\lib\x86;"
cd pjlib-util/bin
./pjlib-util-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjlib-util-test-i386-Win32-vc14-Release.exe $args
shell: powershell
- name: pjmedia-test
run: |
$env:SDL_DIR = Get-Content .\sdl_dir.txt
$env:PATH+=";$env:SDL_DIR\lib\x86;"
cd pjmedia/bin
./pjmedia-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjmedia-test-i386-Win32-vc14-Release.exe $args
shell: powershell
- name: pjnath-test
run: |
$env:SDL_DIR = Get-Content .\sdl_dir.txt
$env:PATH+=";$env:SDL_DIR\lib\x86;"
cd pjnath/bin
./pjnath-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }} ${{ vars.CI_MODE }}
$args = $env:CI_WIN_ARGS -split ' '
./pjnath-test-i386-Win32-vc14-Release.exe $args $env:CI_MODE
shell: powershell

vid-libvpx-schannel-2:
Expand Down Expand Up @@ -517,7 +529,8 @@ jobs:
$env:SDL_DIR = Get-Content .\sdl_dir.txt
$env:PATH+=";$env:SDL_DIR\lib\x86;"
cd pjsip/bin
./pjsip-test-i386-Win32-vc14-Release.exe ${{ vars.CI_WIN_ARGS }}
$args = $env:CI_WIN_ARGS -split ' '
./pjsip-test-i386-Win32-vc14-Release.exe $args
shell: powershell

build-win-vid-ffmpeg:
Expand Down

0 comments on commit de3f2e1

Please sign in to comment.