Skip to content

Building Swift packages on Windows using GitHub Actions - part 5 #5

Building Swift packages on Windows using GitHub Actions - part 5

Building Swift packages on Windows using GitHub Actions - part 5 #5

Workflow file for this run

name: Build for Windows
on:
push:
branches:
- main
jobs:
build:
name: Build Windows Executable
runs-on: windows-latest
steps:
- uses: compnerd/gha-setup-swift@main
with:
branch: swift-5.7.1-release
tag: 5.7.1-RELEASE
- uses: actions/checkout@v4
- run: git config --global core.protectNTFS false
- run: swift build -c release --product chatgpt
- run: cp .build\release\chatgpt.exe chatgpt.exe
- uses: actions/upload-artifact@v3
with:
name: chatgpt-windows.exe
path: chatgpt.exe