36 lines
691 B
YAML
36 lines
691 B
YAML
name: Windows setup
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run-setup:
|
|
runs-on: windows-2022
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Show current directory
|
|
shell: cmd
|
|
run: |
|
|
echo Workspace is:
|
|
cd
|
|
dir
|
|
|
|
- name: Run setup.bat from repo root
|
|
shell: cmd
|
|
run: |
|
|
call Setup.bat
|
|
|
|
- name: Cleanup
|
|
shell: cmd
|
|
run: |
|
|
attrib -h -s "%GITHUB_WORKSPACE%\*" /s /d 2>nul
|
|
del /f /q /s /a "%GITHUB_WORKSPACE%\*" 2>nul
|
|
for /d %%D in ("%GITHUB_WORKSPACE%\*") do rd /s /q "%%D"
|