Skip to content

Commit

Permalink
Actions: Separate config stage
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Oct 23, 2023
1 parent d1031eb commit 384c663
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/on commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
runs-on: windows-latest

steps:
- name: config
run: |
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "sunserega2@gmail.com"
git config --global --add url.https://github.com/.insteadOf "git@github.com:"
- uses: actions/checkout@v3

- name: Install OpenCL driver for Intel CPU
Expand Down Expand Up @@ -48,11 +56,6 @@ jobs:
Write-Host "Compile: " -NoNewline
Start-Process -FilePath 'D:\PABCNETC\pabcnetcclear.exe' -ArgumentList '"PackAll.pas"' -Wait -NoNewWindow
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "sunserega2@gmail.com"
git config --global --add url.https://github.com/.insteadOf "git@github.com:"
$process = Start-Process -FilePath 'PackAll.exe' -ArgumentList '"Stages= FirstPack + Reference + Dummy + OpenCL+OpenCLABC + OpenGL+OpenGLABC + Compile + Test + Release" "PasCompPath=D:\PABCNETC\pabcnetcclear.exe" SkipFinishedPause' -NoNewWindow -PassThru -Wait
$exitCode = $process.ExitCode
if ($exitCode -ne 0) {
Expand Down Expand Up @@ -85,6 +88,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: config
run: |
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "sunserega2@gmail.com"
git config --global --add url.https://github.com/.insteadOf "git@github.com:"
- uses: actions/checkout@v3

- name: apt-gen update
Expand Down Expand Up @@ -127,11 +138,6 @@ jobs:
mono "../PABCNETC/pabcnetcclear.exe" "PackAll.pas"
git config --global core.autocrlf false
git config --global user.name "sun pack bot"
git config --global user.email "sunserega2@gmail.com"
git config --global --add url.https://github.com/.insteadOf "git@github.com:"
# TODO need mono anon pipes workaround
# mono "PackAll.exe" "Stages= FirstPack + Reference + Dummy + OpenCL+OpenCLABC + OpenGL+OpenGLABC + Compile + Test + Release" "PasCompPath=../PABCNETC/pabcnetcclear.exe" SkipFinishedPause

Expand Down

0 comments on commit 384c663

Please sign in to comment.