From c47ac3f5c02a842201b1044be35ddb858634a5fc Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Wed, 25 Oct 2023 02:38:52 -0400 Subject: [PATCH] CI cleanup --- .github/workflows/linux.yaml | 22 +++++++++++++++------- .github/workflows/mac.yaml | 20 ++++++++++++++------ .github/workflows/windows.yaml | 22 +++++++++++++++------- 3 files changed, 44 insertions(+), 20 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 2f7e052..01aaf17 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -10,6 +10,10 @@ on: jobs: build: runs-on: ubuntu-latest + env: + SHOCKPKG_PACKAGES: >- + flash-player-11.2.202.644-linux-i386-sa + flash-player-32.0.0.465-linux-x86_64-sa steps: - name: Checkout uses: actions/checkout@v3 @@ -22,13 +26,17 @@ jobs: - name: NPM run: npm ci - - name: shockpkg - run: | - npm exec shockpkg -- update --summary - npm exec shockpkg -- install \ - flash-player-11.2.202.644-linux-i386-sa \ - flash-player-32.0.0.465-linux-x86_64-sa - shell: bash + - name: shockpkg Cache + uses: actions/cache@v3 + with: + key: shockpkg ${{ env.SHOCKPKG_PACKAGES }} + path: shockpkg + + - name: shockpkg Update + run: npm exec shockpkg -- update --summary + + - name: shockpkg Install + run: npm exec shockpkg -- install ${{ env.SHOCKPKG_PACKAGES }} - name: Build i386 run: node make.mjs build:linux-i386 diff --git a/.github/workflows/mac.yaml b/.github/workflows/mac.yaml index e581c9e..9b61ae3 100644 --- a/.github/workflows/mac.yaml +++ b/.github/workflows/mac.yaml @@ -10,6 +10,9 @@ on: jobs: build: runs-on: macos-latest + env: + SHOCKPKG_PACKAGES: >- + flash-player-35.0.0.204-mac-x86_64-sa-2022-07-04 steps: - name: Checkout uses: actions/checkout@v3 @@ -22,12 +25,17 @@ jobs: - name: NPM run: npm ci - - name: shockpkg - run: | - npm exec shockpkg -- update --summary - npm exec shockpkg -- install \ - flash-player-35.0.0.204-mac-x86_64-sa-2022-07-04 - shell: bash + - name: shockpkg Cache + uses: actions/cache@v3 + with: + key: shockpkg ${{ env.SHOCKPKG_PACKAGES }} + path: shockpkg + + - name: shockpkg Update + run: npm exec shockpkg -- update --summary + + - name: shockpkg Install + run: npm exec shockpkg -- install ${{ env.SHOCKPKG_PACKAGES }} - name: Build run: node make.mjs build:mac-x86_64 diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index 4de48bd..f7e0064 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -10,6 +10,10 @@ on: jobs: build: runs-on: windows-latest + env: + SHOCKPKG_PACKAGES: >- + flash-player-35.0.0.204-windows-i386-sa-2022-08-13 + flash-player-35.0.0.204-windows-x86_64-sa-2022-08-13 steps: - name: Checkout uses: actions/checkout@v3 @@ -22,13 +26,17 @@ jobs: - name: NPM run: npm ci - - name: shockpkg - run: | - npm exec shockpkg -- update --summary - npm exec shockpkg -- install \ - flash-player-35.0.0.204-windows-i386-sa-2022-08-13 \ - flash-player-35.0.0.204-windows-x86_64-sa-2022-08-13 - shell: bash + - name: shockpkg Cache + uses: actions/cache@v3 + with: + key: shockpkg ${{ env.SHOCKPKG_PACKAGES }} + path: shockpkg + + - name: shockpkg Update + run: npm exec shockpkg -- update --summary + + - name: shockpkg Install + run: npm exec shockpkg -- install ${{ env.SHOCKPKG_PACKAGES }} - name: Build i386 run: node make.mjs build:windows-i386