Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Minimal Windows configuration

# Use some descriptive name
name: Minimal Windows Workflow

# The events that trigger this workflow.
on:
  push:
  # We added this so we can run the workflow manually as well without making changes.
  workflow_dispatch:

# One or more jobs to run.
jobs:
  # `build`, the name of the job, is arbitrary, you can use any word for the name of your jobs.
  build:
    # runs-on: the platform (operating system) the job runs on. (e.g. Ubuntu, Windows, Mac)
    runs-on: windows-latest

    # steps - Each step can have a name and it must have a run.
    steps:
      # name - optional, just a description
    - name: Single step
      # run - One or more commands executed in a shell.
      run: echo Hello World

    - name: Look around
      # When excuting more command we can use a pipeline | to indicate this.
      # The goal of the following commands is to show you what is included in the
      # windows-latest platform.
      run: |
        uname -a
        pwd
        whoami
        uptime
        which perl
        which python
        #which python3
        which ruby
        which node
        which java
        perl -v
        # On Windows python is Python 3 and python3 does not exist.
        python -V
        #python3 -V
        ruby -v
        node -v
        javac -version
        java -version

A sample configuration that runs on Windows (as per the runs-on field).

The main difference is the type of commands that one can run on Windows vs. what can run on Linux on macOS.

repository