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" name: "Build & Publish"
on: on:
workflow_dispatch: push:
branches-ignore:
#on: - 'l10n_master'
# push: release:
# branches-ignore: types:
# - 'l10n_master' - published
# release:
# types:
# - published
jobs: jobs:
cloc: cloc:
@ -33,6 +30,13 @@ jobs:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v2 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 - name: Setup Windows builder
run: choco install checksum --no-progress run: choco install checksum --no-progress
@ -41,17 +45,12 @@ jobs:
with: with:
node-version: '10.x' node-version: '10.x'
- name: Download RH - name: Download & Install RH
shell: pwsh shell: pwsh
run: | run: |
Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip" 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 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 "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 - name: Set PACKAGE_VERSION & VER_INFO
run: | 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