Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/beast-dev/beast-mcmc into…
Browse files Browse the repository at this point in the history
… nonparametrics
  • Loading branch information
mandevgill committed Oct 21, 2024
2 parents cf1f7f9 + 233f559 commit 20877d7
Show file tree
Hide file tree
Showing 132 changed files with 474 additions and 370 deletions.
File renamed without changes.
154 changes: 120 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,127 @@
name: BEAST CI
#on:
# push:
# branches:
# - main
# pull_request:

on: [push]

# Cancel if a newer run is started
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
BEAGLE_DIR: beagle-lib
BEAGLE_LIB: beagle-lib/usr/local/lib
LD_LIBRARY_PATH: beagle-lib/usr/local/lib
BEAGLE_BRANCH: v4_release

jobs:
build:
runs-on: ubuntu-latest
env:
BEAGLE_DIR: beagle-lib
BEAGLE_LIB: beagle-lib/usr/local/lib
LD_LIBRARY_PATH: beagle-lib/usr/local/lib
BEAGLE_BRANCH: v4_release
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "adopt"
- name: Setup cmake
uses: lukka/get-cmake@latest
- name: Cache BEAGLE
id: cache
uses: actions/cache@v4
with:
path: |
${{ env.BEAGLE_DIR }}
build/dist
key: beagle-beast-${{ hashFiles('**/build_beagle.sh', '**/build.xml') }}
- name: Build BEAGLE
run: |
chmod +x ./.github/scripts/build_beagle.sh
./.github/scripts/build_beagle.sh
- name: Build BEAST
run: ant dist
- name: Check BEAGLE
run: |
ls ${BEAGLE_LIB}
java -jar -Djava.library.path=${BEAGLE_LIB} build/dist/beast.jar -beagle_info
- name: Set up test matrices
id: set-matrices
run: |
echo "xml-matrix=$(ls tests/TestXML/*.xml | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
echo "xml-load-state-matrix=$(ls tests/TestXMLwithLoadState/*.xml | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
outputs:
xml-matrix: ${{ steps.set-matrices.outputs.xml-matrix }}
xml-load-state-matrix: ${{ steps.set-matrices.outputs.xml-load-state-matrix }}

test-xml:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file: ${{fromJson(needs.build.outputs.xml-matrix)}}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
${{ env.BEAGLE_DIR }}
build/dist
key: beagle-beast-${{ hashFiles('**/build_beagle.sh', '**/build.xml') }}
restore-keys: |
beagle-beast
- name: Rebuild project
run: ant dist
- name: Run test for ${{ matrix.file }}
run: java -Djava.library.path=${BEAGLE_LIB} -jar build/dist/beast.jar -fail_threads -seed 666 -overwrite ${{ matrix.file }}

test-xml-load-state:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
file: ${{fromJson(needs.build.outputs.xml-load-state-matrix)}}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
${{ env.BEAGLE_DIR }}
build/dist
key: beagle-beast-${{ hashFiles('**/build_beagle.sh', '**/build.xml') }}
restore-keys: |
beagle-beast
- name: Rebuild project
run: ant dist
- name: Run test with load state for ${{ matrix.file }}
run: |
checkpoint=tests/TestXMLwithLoadState/$(basename ${{ matrix.file }} .xml).chkpt
java -Djava.library.path=${BEAGLE_LIB} -jar build/dist/beast.jar -fail_threads -seed 666 -load_state $checkpoint -overwrite ${{ matrix.file }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Setup cmake
uses: lukka/get-cmake@latest
# - name: Build BEAGLE
# - run: git clone -b $BEAGLE_BRANCH --depth 1 https://github.com/beagle-dev/beagle-lib.git $BEAGLE_DIR
# - run: cd $BEAGLE_DIR
# - run: mkdir build
# - run: cd build
# - run: echo $PWD
# - run: cmake -DBUILD_CUDA=OFF -DBUILD_OPENCL=OFF ..
# - run: make DESTDIR=BEAGLE_DIR
- run: chmod +x ci/build_beagle.sh
- run: ci/build_beagle.sh
- run: ant dist
- run: ls ${BEAGLE_LIB}
- run: java -jar -Djava.library.path=${BEAGLE_LIB} build/dist/beast.jar -beagle_info
- run: chmod +x ci/test.sh
- run: ci/test.sh
# - run: chmod +x ci/test_with_load_state.sh
# - run: ci/test_with_load_state.sh
- run: ant -Djava.library.path=${BEAGLE_LIB} junit
test-junit:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "adopt"
- uses: actions/cache@v4
with:
path: |
${{ env.BEAGLE_DIR }}
build/dist
key: beagle-beast-${{ hashFiles('**/build_beagle.sh', '**/build.xml') }}
restore-keys: |
beagle-beast
- name: Rebuild project
run: ant dist
- name: Run JUnit tests
run: |
ant -Djava.library.path=${BEAGLE_LIB} junit
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ out/
*.tree
*.xml
!examples/**/*.xml
!ci/**/*.xml
!tests/**/*.xml

zig_zag
src/revision.txt
Expand Down
9 changes: 6 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
<zipgroupfileset dir="${lib}" includes="jdom.jar"/>
<zipgroupfileset dir="${lib}" includes="commons-math-2.2.jar"/>
<zipgroupfileset dir="${lib}" includes="mtj.jar"/>
<zipgroupfileset dir="${lib}" includes="JRI.jar"/>
<!-- <zipgroupfileset dir="${lib}" includes="JRI.jar"/> -->
<zipgroupfileset dir="${lib}" includes="colt.jar"/>
<zipgroupfileset dir="${lib}" includes="beagle.jar"/>
<zipgroupfileset dir="${lib}" includes="EJML-core-0.30.jar"/>
Expand Down Expand Up @@ -414,7 +414,7 @@
<property name="version" value="1.9"/>
-->
<property name="version" value="10.5.0"/>
<property name="extra_release_tag" value="-beta4"/>
<property name="extra_release_tag" value="-beta5"/>
<property name="jvm_version" value="1.8+"/>

<property name="version_number" value="10.5.0"/>
Expand Down Expand Up @@ -724,7 +724,10 @@
<!-- <copy file="${dist}/beast-beagle.jar" todir="${Mac_package_dir}/lib"/> -->
<copy todir="${Mac_package_dir}/lib">
<!-- <fileset dir="${Mac_dir}/lib"/> -->
<fileset dir="lib"/>
<fileset dir="lib">
<include name="*.jar"/>
<exclude name="JRI.jar"/>
</fileset>
</copy>
<copy file="${common_dir}/VERSION HISTORY.txt" todir="${Mac_package_dir}"/>
<copy file="${common_dir}/README.txt" todir="${Mac_package_dir}"/>
Expand Down
Binary file removed release_tempest/Linux/icons/tempest.png
Binary file not shown.
27 changes: 0 additions & 27 deletions release_tempest/Linux/scripts/tempest

This file was deleted.

Binary file removed release_tempest/Mac/icons/TempEst.icns
Binary file not shown.
Binary file removed release_tempest/Windows/icons/TempEst.ico
Binary file not shown.
42 changes: 0 additions & 42 deletions release_tempest/Windows/tempest_launch4j.xml

This file was deleted.

109 changes: 0 additions & 109 deletions release_tempest/common/README.txt

This file was deleted.

2 changes: 1 addition & 1 deletion src/dr/app/beast/BeastVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class BeastVersion implements Version, Citable {
/**
* Version string: assumed to be in format x.x.x
*/
private static final String VERSION = "10.5.0-beta4";
private static final String VERSION = "10.5.0-beta5";

private static final String DATE_STRING = "2002-2024";

Expand Down
Loading

0 comments on commit 20877d7

Please sign in to comment.