Skip to content

Commit

Permalink
Build everything again
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyelewis committed Apr 20, 2021
1 parent 5aa059e commit 99edb28
Showing 1 changed file with 20 additions and 63 deletions.
83 changes: 20 additions & 63 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: build

# TODO:
#
# Fix: MacOS executables are currently dynamically linked to non-universal dylibs:
# * /usr/local/opt/icu4c/lib/libicudata.68.dylib
# * /usr/local/opt/icu4c/lib/libicui18n.68.dylib
# * /usr/local/opt/icu4c/lib/libicuuc.68.dylib
# (and consider temporarily restricting the build to cath-resolve-hits for that)
#
# * Windows?
# * libc++ (if/when dependencies are all Conan-ified)
# * UBSan/ASan (if/when dependencies are all Conan-ified; `-fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer`)
Expand Down Expand Up @@ -70,23 +76,19 @@ jobs:
##################### BUILD #####################

- name: Build
run: ninja -C "$GITHUB_WORKSPACE/build" -k 0 cath-resolve-hits
run: ninja -C "$GITHUB_WORKSPACE/build" -k 0
shell: bash

##################### TEST #####################

# - name: Grab version info from example executable
# run: ${GITHUB_WORKSPACE}/build/bin/cath-superpose --version
# shell: bash

- name: TEMP CRH
run: ${GITHUB_WORKSPACE}/build/bin/cath-resolve-hits --version
- name: Grab version info from example executable
run: ${GITHUB_WORKSPACE}/build/bin/cath-superpose --version
shell: bash

# - name: Test
# run: ctest --output-on-failure
# shell: bash
# working-directory: ${{github.workspace}}/build
- name: Test
run: ctest --output-on-failure
shell: bash
working-directory: ${{github.workspace}}/build

##################### PUBLISH #####################

Expand All @@ -95,63 +97,18 @@ jobs:
run: find "$GITHUB_WORKSPACE/build/bin" -type f -exec mv {} {}.${{ matrix.os }} \;
shell: bash

- name: list executables dir abs
if: startsWith(github.ref, 'refs/tags/')
run: ls -l "$GITHUB_WORKSPACE/build/bin/"
shell: bash

- name: list executables dir rel
if: startsWith(github.ref, 'refs/tags/')
run: ls -l "build/bin/"
shell: bash

# - name: list exe cath-assign-domains
# if: startsWith(github.ref, 'refs/tags/')
# run: ls -l "build/bin/cath-assign-domains.${{ matrix.os }}"
# shell: bash

# - name: list exe cath-cluster
# if: startsWith(github.ref, 'refs/tags/')
# run: ls -l "build/bin/cath-cluster.${{ matrix.os }}"
# shell: bash

# - name: list exe cath-map-clusters
# if: startsWith(github.ref, 'refs/tags/')
# run: ls -l "build/bin/cath-map-clusters.${{ matrix.os }}"
# shell: bash

# - name: list exe cath-refine-align
# if: startsWith(github.ref, 'refs/tags/')
# run: ls -l "build/bin/cath-refine-align.${{ matrix.os }}"
# shell: bash

- name: list exe cath-resolve-hits
if: startsWith(github.ref, 'refs/tags/')
run: ls -l "build/bin/cath-resolve-hits.${{ matrix.os }}"
shell: bash

# - name: list exe cath-ssap
# if: startsWith(github.ref, 'refs/tags/')
# run: ls -l "build/bin/cath-ssap.${{ matrix.os }}"
# shell: bash

# - name: list exe cath-superpose
# if: startsWith(github.ref, 'refs/tags/')
# run: ls -l "build/bin/cath-superpose.${{ matrix.os }}"
# shell: bash

# Note: this doesn't use a shell so don't use substitution or "
- name: Publish to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/') && matrix.flavour == 'release' && ( ( matrix.os == 'macos-10.15' && matrix.compiler == 'clang' ) || ( matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gcc' ) )
uses: softprops/action-gh-release@v1
with:
files: |
build/bin/cath-assign-domains.${{ matrix.os }}
build/bin/cath-cluster.${{ matrix.os }}
build/bin/cath-map-clusters.${{ matrix.os }}
build/bin/cath-refine-align.${{ matrix.os }}
build/bin/cath-resolve-hits.${{ matrix.os }}
# "build/bin/cath-assign-domains.${{ matrix.os }}"
# "build/bin/cath-cluster.${{ matrix.os }}"
# "build/bin/cath-map-clusters.${{ matrix.os }}"
# "build/bin/cath-refine-align.${{ matrix.os }}"
# "build/bin/cath-ssap.${{ matrix.os }}"
# "build/bin/cath-superpose.${{ matrix.os }}"
build/bin/cath-ssap.${{ matrix.os }}
build/bin/cath-superpose.${{ matrix.os }}

0 comments on commit 99edb28

Please sign in to comment.