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 94c27bc
Showing 1 changed file with 43 additions and 7 deletions.
50 changes: 43 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ jobs:
python loadConf.py
cat $GITHUB_OUTPUT
build:
prepare_proxspace:
runs-on: windows-latest
needs:
- load_conf
strategy:
fail-fast: false
matrix:
ref: ${{ fromJSON(needs.load_conf.outputs.refs) }}
defaults:
run:
shell: pwsh
Expand All @@ -41,6 +35,17 @@ jobs:
- 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:\"

Expand All @@ -59,6 +64,36 @@ jobs:
working-directory: C:\ProxSpace
run: ./runme64.bat -c "exit"

build:
runs-on: windows-latest
needs: [load_conf, prepare_proxspace]
strategy:
fail-fast: false
matrix:
ref: ${{ fromJSON(needs.load_conf.outputs.refs) }}
defaults:
run:
shell: pwsh
env:
MSYSTEM: MINGW64
PYTHONHOME: /mingw64

steps:
- 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 initial startup
working-directory: C:\ProxSpace
run: ./runme64.bat -c "exit"

- name: Checkout Proxmark3
env:
MATRIX_REF: ${{ matrix.ref }}
Expand All @@ -79,5 +114,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: client_${{ matrix.ref }}
path: |
C:/ProxSpace/builds/**/*.7z

0 comments on commit 94c27bc

Please sign in to comment.