Skip to content

runners for macos and windows #4

runners for macos and windows

runners for macos and windows #4

Workflow file for this run

name: macOS Workflow Example
on:
push:
branches:
- main
jobs:
build-and-test:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Swift File
run: |
echo 'print("Hello from Swift on macOS")' > hello.swift
- name: Install dependencies
run: |
brew install swiftlint
- name: Run SwiftLint
run: swiftlint
- name: Compile and run Swift program
run: |
swiftc hello.swift
./hello