Skip to content

Rename to Harken and use TOML config instead of JSON #15

Rename to Harken and use TOML config instead of JSON

Rename to Harken and use TOML config instead of JSON #15

Workflow file for this run

name: dev-build
on:
pull_request:
branches:
- main
paths:
- "src/**"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect src changes
id: src_changes
shell: pwsh
run: |
$base = "${{ github.event.pull_request.base.sha }}"
$changed = git diff --name-only $base $env:GITHUB_SHA | Where-Object { $_ -like "src/*" }
$hasChanges = $changed.Count -gt 0
"has_src_changes=$hasChanges" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Build dev artifacts
if: steps.src_changes.outputs.has_src_changes == 'true'
shell: pwsh
run: |
powershell -ExecutionPolicy Bypass -File tools/build_release.ps1 -Version dev
- name: Upload artifacts
if: steps.src_changes.outputs.has_src_changes == 'true'
uses: actions/upload-artifact@v4
with:
name: harken-dev-${{ github.sha }}
path: |
dist\harken-source-dev.zip
dist\harken.exe