-
Notifications
You must be signed in to change notification settings - Fork 323
170 lines (138 loc) · 4.59 KB
/
enso4igv.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
167
168
169
170
name: Enso Language Support for VSCode, IGV, NetBeans
on:
push:
branches: [develop]
pull_request:
branches: [develop]
paths:
- ".github/workflows/enso4igv.yml"
- "tools/enso4igv/**/*"
- "engine/**/*"
- "lib/java/**/*"
- "lib/scala/**/*"
- "build.sbt"
jobs:
build_linux_parser:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install rustup
run: |
rustup target add x86_64-unknown-linux-musl
- name: Build Enso Parser
working-directory: .
env:
RUSTFLAGS: "-C target-feature=-crt-static"
run: |
cargo build --release -p enso-parser-jni -Z unstable-options --target x86_64-unknown-linux-musl --out-dir target/lib/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: parser_linux
path: |
target/lib/**
build_mac_intel_parser:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Build Enso Parser
working-directory: .
env:
RUSTFLAGS: "-C target-feature=-crt-static"
run: |
cargo build --release -p enso-parser-jni -Z unstable-options --out-dir target/lib/x86_64
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: parser_mac_intel
path: |
target/lib/**
build_mac_arm_parser:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Build Enso Parser
working-directory: .
env:
RUSTFLAGS: "-C target-feature=-crt-static"
run: |
cargo build --release -p enso-parser-jni -Z unstable-options --out-dir target/lib/aarch64/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: parser_mac_arm
path: |
target/lib/**
build_windows_parser:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Build Enso Parser
working-directory: .
env:
RUSTFLAGS: "-C target-feature=-crt-static"
run: |
cargo build --release -p enso-parser-jni -Z unstable-options --out-dir target/lib/
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: parser_windows
path: |
target/lib/**
build_java:
needs:
[
build_linux_parser,
build_mac_intel_parser,
build_mac_arm_parser,
build_windows_parser,
]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Download Libraries
uses: actions/download-artifact@v4
with:
path: enso_parser
merge-multiple: true
- name: List Binaries
run: |
find . | grep -i enso.parser | xargs ls -ld
- name: Set up Rustup
run: rustup show
- uses: graalvm/setup-graalvm@v1
with:
java-version: "21"
distribution: "graalvm-community"
- name: Publish Enso Libraries to Local Maven Repository
run: sbt publishM2
- name: Find out pom & micro versions
working-directory: tools/enso4igv
run: |
# Why do we subtract a number? Read versioning policy!
# https://github.com/enso-org/enso/pull/7861#discussion_r1333133490
echo "POM_VERSION=`mvn -q -DforceStdout help:evaluate -Dexpression=project.version | cut -f1 -d -`" >> "$GITHUB_ENV"
echo "MICRO_VERSION=`expr $GITHUB_RUN_NUMBER - 2930`" >> "$GITHUB_ENV"
- name: Update project version
working-directory: tools/enso4igv
run: |
echo "Setting version to $POM_VERSION.$MICRO_VERSION"
mvn versions:set -DnewVersion="$POM_VERSION.$MICRO_VERSION"
- name: Build with Maven
run: mvn -B -Pvsix package --file tools/enso4igv/pom.xml -Denso.parser.lib=`pwd`/enso_parser/
- name: Archive NBM file
uses: actions/upload-artifact@v4
with:
name: Enso IGV Plugin
path: tools/enso4igv/target/*.nbm
- name: Install Node.js modules
run: mvn -B -Pvsix npm:install --file tools/enso4igv/pom.xml
- name: Update package.json version
run: mvn -B -Pvsix npm:exec@version --file tools/enso4igv/pom.xml
- name: Build VSCode Extension
run: mvn -B -Pvsix npm:run@vsix --file tools/enso4igv/pom.xml -Denso.parser.lib=`pwd`/enso_parser/
- name: Archive VSCode extension
uses: actions/upload-artifact@v4
with:
name: VSCode Extension
path: tools/enso4igv/*.vsix