Skip to content

ci: update workflow config #55

ci: update workflow config

ci: update workflow config #55

Workflow file for this run

# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Build
on:
schedule:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows
- cron: "0 15 1 * *"
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"
- ".github/ISSUE_TEMPLATE/*"
- ".github/workflows/stale.yml"
pull_request:
paths-ignore:
- "**/*.adoc"
- "**/*.md"
- ".editorconfig"
- ".git*"
- ".github/*.yml"
- ".github/ISSUE_TEMPLATE/*"
- ".github/workflows/stale.yml"
workflow_dispatch:
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_dispatch
defaults:
run:
shell: cmd
jobs:
###########################################################
build:
###########################################################
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: # https://github.com/actions/runner-images#available-images
- windows-2022
- windows-2025
steps:
- name: "Show: GitHub context"
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: printf '%s' "$GITHUB_CONTEXT" | python -m json.tool
- name: "Show: environment variables"
run: env | sort
- 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"