1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

testing GH Action cache

This commit is contained in:
Joseph Flinn 2021-01-07 23:06:52 +00:00
parent 26bbd90cf2
commit 44cfa52d9a
2 changed files with 38 additions and 15 deletions

View File

@ -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: |

24
.github/workflows/exp.yml vendored Normal file
View File

@ -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