-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (37 loc) · 1.23 KB
/
release.yml
File metadata and controls
46 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and Release
on:
release:
types: [published]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- name: win64
args: --os=win64 --cpu=x86_64
artifact: DiskImageManager-win64.zip
- name: win32
args: --os=win32 --cpu=i386
artifact: DiskImageManager-win32.zip
runs-on: windows-latest
steps:
- name: Install Lazarus
uses: ollydev/setup-lazarus-fpcup@v3.3
with:
laz: lazarus_3_8
fpc: release_3_2_2
- uses: actions/checkout@v4
- name: Build package
run: lazbuild ${{ matrix.args }} --add-package Source/DIMComponents.lpk
- name: Build application
run: lazbuild ${{ matrix.args }} -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