-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (45 loc) · 1.36 KB
/
release.yml
File metadata and controls
53 lines (45 loc) · 1.36 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
47
48
49
50
51
52
53
name: release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [windows-latest,ubuntu-latest,macos-latest]
lazarus-versions: [stable] #[dist, stable, 2.0.12, 2.0.10, 2.0.8, 2.0.6]
steps:
- uses: actions/checkout@v5
- name: Install Lazarus
uses: gcarreno/setup-lazarus@v3.2
with:
lazarus-version: ${{ matrix.lazarus-versions }}
with-cache: true
- name: Build the application
if: ${{ matrix.operating-system != 'macos-latest' }}
run: |
lazbuild -B "pg_timetable_gui.lpi"
ls
- name: Build the application (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: lazbuild -B --ws=cocoa "pg_timetable_gui.lpi"
- name: Pack
shell: bash
run: |
release_name="pg_timetable_gui-${{ matrix.target }}"
ls -a
if [ "${{ matrix.target }}" == "win-x64" ]; then
# Pack to zip for Windows
7z a -tzip "${release_name}.zip" "pg_timetable_gui.exe"
else
tar czvf "${release_name}.tar.gz" "pg_timetable_gui"
fi
- name: Publish Release Artifacts
uses: softprops/action-gh-release@v3
with:
files: |
*.zip
*.tar.gz
LICENSE