forked from tectonic-typesetting/tectonic
-
Notifications
You must be signed in to change notification settings - Fork 13
166 lines (136 loc) · 4.18 KB
/
ci.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: Rust Build
on:
push:
branches: [ oxidize ]
pull_request:
branches: [ oxidize ]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
name: Format
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
check:
name: Check
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install dependencies
run: sudo apt-get install libgraphite2-dev libharfbuzz-dev
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
check_nightly:
name: Check Nightly
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install dependencies
run: sudo apt-get install libgraphite2-dev libharfbuzz-dev
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
linux:
name: Linux Test
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install dependencies
run: sudo apt-get install libgraphite2-dev libharfbuzz-dev
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
env:
RUST_BACKTRACE: 1
# windows:
# name: Windows Test
# runs-on: windows-latest
# env:
# cache-name: cache-vcpkg-modules
# VS15: true
# VCPKGRS_DYNAMIC: 1
# VCPKG_DEFAULT_TRIPLET: x64-windows
# TECTONIC_DEP_BACKEND: vcpkg
# RUST_TEST_THREADS: 1
# VCPKG_ROOT: ${{ github.workspace }}\vcpkg
#
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
# - name: Install nightly toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# - name: Set Env
# run: |
# echo 'FC_CACHEDIR=${{ env.VCPKG_ROOT }}\installed\${{ env.VCPKG_DEFAULT_TRIPLET }}\tools\fontconfig\fonts\cache' >> $GITHUB_ENV
# echo 'FONTCONFIG_FILE=${{ env.VCPKG_ROOT }}\installed\${{ env.VCPKG_DEFAULT_TRIPLET }}\tools\fontconfig\fonts\fonts.conf' >> $GITHUB_ENV
# echo 'FONTCONFIG_PATH=${{ env.VCPKG_ROOT }}\installed\${{ env.VCPKG_DEFAULT_TRIPLET }}\tools\fontconfig\fonts\conf.d >> $GITHUB_ENV
# - name: Cache Dependencies
# uses: actions/cache@v2
# with:
# path: ${{ env.VCPKG_ROOT }}\installed
# key: ${{ runner.os }}-build-${{ env.cache-name }}-0ab1bd128e0366fdac31b632888c9e945ee3335a
# - name: Install Dependencies
# run: dist\prepare-win-ci-deps.bat
# - name: Run tests
# uses: actions-rs/cargo@v1
# with:
# command: test
# env:
# RUST_BACKTRACE: 1
macos:
name: MacOS Test
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Dependencies
run: brew install harfbuzz openssl
- name: Set Env
run: |
echo 'OPENSSL_INCLUDE_DIR=$(brew --prefix openssl)/include' >> $GITHUB_ENV
echo 'OPENSSL_LIB_DIR=$(brew --prefix openssl)/lib' >> $GITHUB_ENV
echo 'DEP_OPENSSL_INCLUDE=$(brew --prefix openssl)/include' >> $GITHUB_ENV
echo 'PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:$(brew --prefix harfbuzz)/lib/pkgconfig' >> $GITHUB_ENV
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
env:
RUST_BACKTRACE: 1