-
-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Build NVDA | ||
|
||
description: 'Builds NVDA' | ||
inputs: | ||
use-cache: | ||
description: 'Indicates if cache action should be used: true or false' | ||
default: 'true' | ||
scons-source: | ||
description: 'Indicates if scons source should be run: true or false' | ||
default: 'true' | ||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install dependencies | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
architecture: x86 | ||
- name: Cache dependencies | ||
id: cacheDependencies | ||
if: ${{ inputs.use-cache }} | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.venv | ||
source | ||
key: ${{ runner.os }}-${{ hashFiles('requirements.txt', 'source/locale/**/*.po') }} | ||
- name: Set version variables | ||
run: powershell.exe ci/scripts/setBuildVersionVars.ps1 | ||
shell: cmd | ||
- name: Set scons args | ||
run: powershell.exe ci/scripts/setSconsArgs.ps1 | ||
shell: cmd | ||
- name: Prepare source code | ||
if: ${{ steps.cacheDependencies.outputs.cache-hit != 'true' && inputs.scons-source == 'true' }} | ||
run: scons source %sconsArgs% --all-cores | ||
shell: cmd | ||
- name: Restore modified files | ||
run: git restore . | ||
shell: cmd | ||
- name: Update submodules | ||
run: git submodule update | ||
shell: cmd | ||
- name: Prepare for tests | ||
run: powershell.exe ci/scripts/tests/beforeTests.ps1 | ||
shell: cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters