Skip to content

ci: add workflow dependencies #1

ci: add workflow dependencies

ci: add workflow dependencies #1

Workflow file for this run

name: Build QA
on:
push:
branches:
- qa
workflow_run:

Check failure on line 8 in .github/workflows/build-qa.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-qa.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
workflows: ["Code Coverage"]
types:
- success
jobs:
build:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install --no-interaction
- name: Build binaries
run: |
poetry run python ./scripts/windows_version_file.py > ./version.txt
poetry run pyinstaller --icon=assets/logo-rewsty.ico --onefile rewst_remote_agent.py --version-file=./version.txt
poetry run pyinstaller --icon=assets/logo-rewsty.ico --onefile rewst_service_manager.py --version-file=./version.txt
poetry run pyinstaller --icon=assets/logo-rewsty.ico --onefile rewst_agent_config.py --version-file=./version.txt
poetry run pyinstaller --icon=assets/logo-rewsty.ico --onefile rewst_windows_service.py --version-file=./version.txt
- name: Generate checksums
run: |
Get-FileHash -Path ./dist/rewst_remote_agent.exe -Algorithm SHA256 | Format-List | Out-File -FilePath ./dist/rewst_remote_agent.exe.sha256
Get-FileHash -Path ./dist/rewst_service_manager.exe -Algorithm SHA256 | Format-List | Out-File -FilePath ./dist/rewst_service_manager.exe.sha256
Get-FileHash -Path ./dist/rewst_agent_config.exe -Algorithm SHA256 | Format-List | Out-File -FilePath ./dist/rewst_agent_config.exe.sha256
Get-FileHash -Path ./dist/rewst_windows_service.exe -Algorithm SHA256 | Format-List | Out-File -FilePath ./dist/rewst_windows_service.exe.sha256
- name: Upload assets
uses: actions/upload-artifact@v4
with:
name: windows-compiled-assets
path: |
./dist/rewst_windows_service.exe
./dist/rewst_service_manager.exe
./dist/rewst_remote_agent.exe
./dist/rewst_agent_config.exe
./dist/rewst_windows_service.exe.sha256
./dist/rewst_service_manager.exe.sha256
./dist/rewst_remote_agent.exe.sha256
./dist/rewst_agent_config.exe.sha256