Skip to content

2.10.0

2.10.0 #6

Workflow file for this run

name: Build and Release
on:
release:
types: [published]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- cpu: x86_64
artifact: DiskImageManager-win64.zip
- cpu: i386
artifact: DiskImageManager-win32.zip
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Lazarus
uses: ollydev/setup-lazarus-fpcup@v1
with:
cpu: ${{ matrix.cpu }}
- name: Build package
run: lazbuild --add-package Source/DIMComponents.lpk
- name: Build application
run: lazbuild -B Source/DiskImageManager.lpi
- name: Package
shell: pwsh
run: |
$exe = Get-ChildItem -Path out -Recurse -Filter "DiskImageManager.exe" | Select-Object -First 1
Compress-Archive -Path $exe.FullName -DestinationPath ${{ matrix.artifact }}
- name: Upload release asset
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ${{ matrix.artifact }} --clobber