Skip to content

Commit c5c54f8

Browse files
authored
Merge pull request #46 from JuliaDiff/sds/fix_nightly
Fix on Julia nightly, add some CI
2 parents b95eb68 + bdadd02 commit c5c54f8

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

.github/workflows/CI.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,50 @@
1-
name: Build Terminology PDF
1+
name: CI
22
on:
33
pull_request:
44
push:
55
branches:
6-
- main
6+
- master
77
tags: '*'
88
workflow_dispatch:
99
jobs:
10-
build_latex:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- 'nightly'
18+
os:
19+
- ubuntu-latest
20+
- macOS-latest
21+
- windows-latest
22+
arch:
23+
- x64
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: actions/cache@v1
31+
env:
32+
cache-name: cache-artifacts
33+
with:
34+
path: ~/.julia/artifacts
35+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36+
restore-keys: |
37+
${{ runner.os }}-test-${{ env.cache-name }}-
38+
${{ runner.os }}-test-
39+
${{ runner.os }}-
40+
- uses: julia-actions/julia-buildpkg@v1
41+
- uses: julia-actions/julia-runtest@v1
42+
- uses: julia-actions/julia-processcoverage@v1
43+
- uses: codecov/codecov-action@v1
44+
with:
45+
file: lcov.info
46+
47+
build_terminology_latex:
1148
runs-on: ubuntu-latest
1249
steps:
1350
- name: Set up Git repository

src/stage1/generated.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function perform_optic_transform(@nospecialize(ff::Type{∂⃖recurse{N}}), @nos
2828
end
2929

3030
ci′.ssavaluetypes = length(ci′.code)
31+
ci′.ssaflags = UInt8[0 for i=1:length(ci′.code)]
3132
ci′.method_for_inference_limit_heuristics = match.method
3233
ci′
3334
end

src/stage1/recurse_fwd.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ function perform_fwd_transform(@nospecialize(ff::Type{∂☆recurse{N}}), @nospe
139139
transform_fwd!(ci′, mi.def, length(args) - 1, match.sparams, N)
140140

141141
ci′.ssavaluetypes = length(ci′.code)
142+
ci′.ssaflags = UInt8[0 for i=1:length(ci′.code)]
142143
ci′.method_for_inference_limit_heuristics = match.method
143144
slotnames = Symbol[Symbol("#self#"), :args, ci.slotnames...]
144145
slotflags = UInt8[(0x00 for i = 1:2)..., ci.slotflags...]

0 commit comments

Comments
 (0)