-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.57 KB
/
build-windows.yml
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
54
55
56
57
58
59
60
61
62
63
# -----------------------------------------------------------------------------
# Build workflow for portable apps
# Author: Urs Roesch https://github.com/uroesch
# Version: 0.10.0
# -----------------------------------------------------------------------------
name: build-windows
on:
push:
branches:
- workflow/*
pull_request:
branches:
- master
- main
jobs:
build-windows:
if: endsWith(github.repository, 'Portable')
timeout-minutes: 15
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Clone PortableApps.comInstaller
uses: actions/checkout@v3
with:
repository: uroesch/PortableApps.comInstaller
ref: main
path: PortableApps.comInstaller
- name: Clone PortableApps.comLauncher
uses: actions/checkout@v3
with:
repository: uroesch/PortableApps.comLauncher
ref: patched
path: PortableApps.comLauncher
- name: Move installer and launcher
shell: bash
run: mv ./PortableApps.com{Installer,Launcher} ../
- name: Run build script Update.ps1
run: pwsh -ExecutionPolicy ByPass -File Other/Update/Update.ps1
timeout-minutes: 10
- name: Collect logs on failure
if: failure()
shell: bash
run: |
mkdir ../artifacts
cp ../PortableApps.com*/Data/*Log.txt ../artifacts
- name: Upload artifacts on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs.zip
path: ../artifacts