-
-
Notifications
You must be signed in to change notification settings - Fork 94
65 lines (63 loc) · 2.19 KB
/
MSER.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
64
65
name: mser
on:
push:
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
paths-ignore:
- '**.md'
- '**.yml'
workflow_dispatch:
paths-ignore:
- '**.md'
- '**.yml'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Cache tools
uses: actions/cache@v3
id: cache
with:
path: |
autoit-v3-setup.exe
SciTE4AutoIt3.exe
C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper
key: v3
- name: Download tools
if: steps.cache.outputs.cache-hit != 'true'
run: |
curl -sSfL https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe -o autoit-v3-setup.exe `
-sSfL https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe -o SciTE4AutoIt3.exe `
-sSfLO https://www.autoitscript.com/autoit3/scite/download/Au3Stripper.zip
Expand-Archive Au3Stripper.zip "${env:ProgramFiles(x86)}\AutoIt3\SciTE\Au3Stripper"
- name: Install tools
run: |
Start-Process autoit-v3-setup.exe -ArgumentList /S -NoNewWindow -Wait
Start-Process SciTE4AutoIt3.exe -ArgumentList /S -NoNewWindow -Wait
- name: Compile
run: |
Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in MSEdgeRedirect.au3" -NoNewWindow -Wait
sha256sum -b MSEdgeRedirect*.exe > checksums.sha256
- uses: actions/upload-artifact@v3
with:
name: mser
path: |
MSEdgeRedirect*.exe
checksums.sha256
if-no-files-found: error
- name: Zip package
if: startsWith(github.ref, 'refs/tags/')
run: 7z a MSEdgeRedirect.zip MSEdgeRedirect*.exe checksums.sha256
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
MSEdgeRedirect.exe
MSEdgeRedirect.zip
checksums.sha256
env:
GITHUB_TOKEN: ${{ secrets.MSEdgeRedirect_PAT }}