Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CI vars in GH workflow file #4263

Merged
merged 8 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading