build_test #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_test | |
on: | |
workflow_dispatch: | |
# Build and test ASP on macOS. For now triggered via gh workflow. | |
# on: | |
# push: | |
# branches: [ "master" ] | |
# pull_request: | |
# branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache conda | |
id: cache-conda | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-conda | |
with: | |
# Use cached ASP dependencies. They will be created manually | |
# after starting a session with ssh.yml. | |
path: | | |
/usr/local/miniconda/envs | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/miniconda.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: build_test | |
run: ./.github/workflows/build_test.sh | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: StereoPipeline-${{ runner.os }} | |
path: ~/work/StereoPipeline/packages | |
retention-days: 2 |