Skip to content

Commit 7dfcc73

Browse files
committed
Merge branch 'tlk/build-on-github-hosted-runners' of https://github.com/tlk/Arduino into tlk-tlk/build-on-github-hosted-runners
2 parents 768c659 + b4e5a8f commit 7dfcc73

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .github/workflows/ant.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
- name: Build with Ant
17+
working-directory: ./build
18+
run: |
19+
sed -i 's#<input .*/>##' build.xml
20+
ant clean dist
21+
- name: Install X virtual framebuffer
22+
run: sudo apt-get install -y xvfb
23+
- name: Run tests
24+
working-directory: ./app
25+
run: xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test
26+
- name: Cleanup xvfb
27+
uses: bcomnes/cleanup-xvfb@v1

0 commit comments

Comments
 (0)