Skip to content

Commit

Permalink
Merge pull request #9 from vlsi/ci
Browse files Browse the repository at this point in the history
Add GitHub Actions CI
  • Loading branch information
jkesselm authored Oct 17, 2023
2 parents f51fdd9 + ad46b25 commit f08f127
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

permissions:
contents: read

# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
# GitHub Actions does not support Docker, PostgreSQL server on Windows, macOS :(

concurrency:
# On master/release, we don't want any jobs cancelled so the sha is used to name the group
# On PR branches, we cancel the job if new commits are pushed
# More info: https://stackoverflow.com/a/68422069/253468
group: ${{ github.ref == 'refs/heads/trunk' && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }}
cancel-in-progress: true

jobs:
build:
name: 'Java 8'
runs-on: ubuntu-latest
steps:
- name: 'Checkout xalan-java'
uses: actions/checkout@v3
- name: 'Set up JDK 8'
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 8
- name: 'Build Xalan jars'
run: |
ant jar
- uses: actions/checkout@v3
name: 'Checkout xalan-test'
with:
repository: apache/xalan-test
path: xalan-test
ref: xalan-j_2_7_x
- name: 'Run xalan-test tests'
working-directory: xalan-test
run: |
ant alltest -Dxalan.relpath=../ -Dparserjar=../lib/endorsed/xercesImpl.jar -Dxml-apis.jar=../lib/endorsed/xml-apis.jar
- id: build_artifacts
run: |
ant fulldist

0 comments on commit f08f127

Please sign in to comment.