summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci-build.yml
blob: 1b1b4844d22a4747046ce3e56fe3c6419a972dee (plain)
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
name: Continous build on every push

on:
  push:
    branches-ignore:
      - 'release*'
      - gh-pages

jobs:
  build_linux:
    name: Linux build and test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java-version: [8, 11]
    
    steps:
      - name: Checkout
        uses: actions/checkout@v1
        with:
          submodules: true

      - name: Setup Java ${{ matrix.java-version }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java-version }}

      - name: Setup Moxie
        run: |
          wget http://gitblit.github.io/moxie/maven/com/gitblit/moxie/moxie+ant/0.9.4/moxie+ant-0.9.4.tar.gz
          tar -xzf moxie+ant-0.9.4.tar.gz
          moxie-0.9.4/bin/moxie -version

      - name: Report Java version
        run: |
          java -version
          javac -version

      - name: Build with Moxie
        run: moxie-0.9.4/bin/moxie test


  build_windows:
    name: Windows build and test
    runs-on: windows-latest
    strategy:
      matrix:
        java-version: [8, 11]

    steps:
      - name: Checkout
        uses: actions/checkout@v1
        with:
          submodules: true

      - name: Setup Java ${{ matrix.java-version }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java-version }}

      - name: Report Java version
        run: |
          java -version
          javac -version

      - name: Build with Ant
        run: ant test