fix(deps): bump actions/cache from 3 to 4 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: Build | |
on: | |
push: | |
branches-ignore: # build all branches except: | |
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR) | |
tags-ignore: # don't build tags | |
- '**' | |
paths-ignore: | |
- '**/*.adoc' | |
- '**/*.md' | |
- '.editorconfig' | |
- '.git*' | |
- '.github/*.yml' | |
pull_request: | |
workflow_dispatch: | |
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ | |
defaults: | |
run: | |
shell: cmd | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-2019 | |
- windows-2022 | |
steps: | |
- name: Show environment variables | |
run: set | |
- name: Git Checkout | |
uses: actions/checkout@v4 # https://github.com/actions/checkout | |
- name: "Cache: cygwin packages repository" | |
uses: actions/cache@v4 | |
with: | |
path: cygwin\.pkg-cache | |
key: ${{ runner.os }}-cygwinrepo | |
- name: "Install: cygwin-portable" | |
run: call .\cygwin-portable-installer.cmd | |
- name: "Test: Start cygwin-portable" | |
run: call .\cygwin-portable.cmd "bash --version" | |
- name: "Test: apt-cyg update" | |
run: call .\cygwin-portable.cmd "apt-cyg update" |