-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (72 loc) · 2.22 KB
/
brotli.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: 'Build Brotli'
on:
# Triggers the workflow on push or pull request events but only for the master branch
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
windows:
strategy:
fail-fast: true
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rebol
uses: oldes/[email protected]
- name: Build 64bit Brotli using msvc
run: |
./rebol3.exe siskin.r3 utility/brotli --msvc 1
MOVE ./tree/utility/msvc/Release-x64/brotli.exe ./
- name: Simple test
run: ./brotli.exe -h
- uses: actions/upload-artifact@v3
with:
name: brotli
path: ./brotli.exe
linux:
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04]
#os: [ubuntu-20.04, ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rebol
uses: oldes/[email protected]
- name: Build 64bit Brotli using gcc
run: ./rebol3 siskin.r3 utility/brotli 1
- name: Move results into the root for uploading
run: mv ./tree/utility/build/brotli ./brotli
- name: Simple test
run: chmod +x ./brotli & ./brotli -h
- name: Compress results before uploading
run: gzip -9 ./brotli
- uses: actions/upload-artifact@v3
with:
name: brotli
path: ./brotli.gz
macos:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rebol
uses: oldes/[email protected]
- name: Build 64bit Brotli
run: ./rebol3 siskin.r3 utility/brotli 1
- name: Move results into the root for uploading
run: mv ./tree/utility/build/brotli ./brotli-osx
- name: Simple test
run: chmod +x ./brotli-osx & ./brotli-osx -h
- name: Compress results before uploading
run: gzip -9 ./brotli-osx
- uses: actions/upload-artifact@v3
with:
name: brotli
path: ./brotli-osx.gz