Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
cache and seperated artifacts
  • Loading branch information
wh201906 committed May 18, 2023
1 parent a1921fe commit 0299d2f
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,57 @@ jobs:
python loadConf.py
cat $GITHUB_OUTPUT
prepare_proxspace:
runs-on: windows-latest
defaults:
run:
shell: pwsh
env:
MSYSTEM: MINGW64
PYTHONHOME: /mingw64

steps:
- name: Set Environment
run: |
$Env:PATH = "C:/ProxSpace/msys2/mingw64/bin;C:/ProxSpace/msys2/usr/local/bin;C:/ProxSpace/msys2/usr/bin;C:/ProxSpace/msys2/bin;"+$Env:PATH
echo $Env:PATH
echo $Env:PATH >> "$GITHUB_ENV"
- name: ProxSpace download
run: Invoke-WebRequest "https://github.com/Gator96100/ProxSpace/archive/master.zip" -outfile "C:\proxspace.zip" -Passthru

- name: Cache ProxSpace
id: cache-proxspace
uses: actions/cache@v3
env:
cache-name: cache-proxspace
with:
path: C:/ProxSpace
key: proxspace-${{ hashFiles('C:/proxspace.zip') }}-${{ github.run_id }}
restore-keys: |
proxspace-${{ hashFiles('C:/proxspace.zip') }}-
- name: ProxSpace extract
run: Expand-Archive -LiteralPath "C:\proxspace.zip" -DestinationPath "C:\"

- name: ProxSpace delete zip
run: Remove-Item "C:\proxspace.zip"

- name: ProxSpace rename folder
run: Get-ChildItem -Path "C:\ProxSpace-*" | Rename-Item -NewName (Split-Path C:\ProxSpace -Leaf)

- name: ProxSpace version
run: |
$psversion = (Select-String -Pattern 'PSVERSION=' -SimpleMatch -Path "C:\ProxSpace\setup\09-proxspace_setup.post").Line.Split("""")[1]
Write-Host "ProxSpace version: $psversion"
- name: ProxSpace initial startup
working-directory: C:\ProxSpace
run: ./runme64.bat -c "exit"

build:
runs-on: windows-latest
needs:
- load_conf
needs: [load_conf, prepare_proxspace]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -79,5 +126,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: client_${{ matrix.ref }}
path: |
C:/ProxSpace/builds/**/*.7z

0 comments on commit 0299d2f

Please sign in to comment.