Skip to content

Commit

Permalink
ci: build coatjava and gemc
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Sep 11, 2023
1 parent 8fcfdee commit 7b48e1a
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: ci

on:
pull_request:
push:
branches:
- master

defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

# build
#############################################################################

build_coatjava:
runs-on: ubuntu-latest
steps:
- name: setup java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: zulu
- name: clone
run: git clone https://github.com/JeffersonLab/coatjava.git
- name: build
run: |
cd coatjava
./build-coatjava.sh
- name: tree
run: tree
- name: tar
run: tar czvf coatjava{.tar.gz,}
- uses: actions/upload-artifact@v3
with:
name: build
retention-days: 1
path: *.tar.gz

build_gemc:
runs-on: ubuntu-latest
steps:
- name: clone
run: git clone https://github.com/gemc/clas12Tags.git
- name: build
run: |
cd clas12Tags/source
scons -j2 OPT=1
- name: tree
run: tree
- name: tar
run: tar czvf clas12Tags
- uses: actions/upload-artifact@v3
with:
name: build
retention-days: 1
path: *.tar.gz

# test
#############################################################################
test:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: build
- name: tree
run: tree

0 comments on commit 7b48e1a

Please sign in to comment.