From 44cfa52d9af39ee7b09722d33a215a88f8b5d23c Mon Sep 17 00:00:00 2001 From: Joseph Flinn Date: Thu, 7 Jan 2021 23:06:52 +0000 Subject: [PATCH] testing GH Action cache --- .github/workflows/build.yml | 29 ++++++++++++++--------------- .github/workflows/exp.yml | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/exp.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 807f27b1c4..9df1e2361b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,15 +1,12 @@ name: "Build & Publish" on: - workflow_dispatch: - -#on: -# push: -# branches-ignore: -# - 'l10n_master' -# release: -# types: -# - published + push: + branches-ignore: + - 'l10n_master' + release: + types: + - published jobs: cloc: @@ -33,6 +30,13 @@ jobs: - name: Checkout repo uses: actions/checkout@v2 + - name: Cache Dist + id: cached-dist + uses: actions/cache@v2 + with: + path: dist + key: ${{ runner.os }}-${{ hashFiles('dist/') }} + - name: Setup Windows builder run: choco install checksum --no-progress @@ -41,17 +45,12 @@ jobs: with: node-version: '10.x' - - name: Download RH + - name: Download & Install RH shell: pwsh run: | Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip" Expand-Archive -Path resource_hacker.zip -DestinationPath scripts/resource_hacker - - - name: Debugging Path - shell: pwsh - run: | echo "D:\a\cli\cli\scripts\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - echo $env:GITHUB_PATH - name: Set PACKAGE_VERSION & VER_INFO run: | diff --git a/.github/workflows/exp.yml b/.github/workflows/exp.yml new file mode 100644 index 0000000000..436b308dcd --- /dev/null +++ b/.github/workflows/exp.yml @@ -0,0 +1,24 @@ +name: Windows Environment Exploration + +on: + workflow_dispatch: + +jobs: + exp: + runs-on: windows-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Cache Dist + id: cached-dist + uses: actions/cache@v2 + with: + path: dist + key: ${{ runner.os }}-${{ hashFiles('dist/') }} + + - name: Creating test cache + shell: bash + run: | + [ -f dist/test.txt ] && echo "File exists!" + [ ! -f dist/test.txt ] && mkdir dist && echo "this is a test" > dist/test.txt