-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for build and test on OSX
- Loading branch information
1 parent
cc46bf8
commit bc2dade
Showing
3 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
echo now in run_test.sh | ||
|
||
mkdir -p ~/work/StereoPipeline/StereoPipeline-OSX | ||
|
||
echo Created directory ~/work/StereoPipeline/StereoPipeline-OSX | ||
touch ~/work/StereoPipeline/StereoPipeline-OSX/test.txt | ||
echo Created file ~/work/StereoPipeline/StereoPipeline-OSX/test.txt |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: build_test | ||
on: | ||
workflow_dispatch: | ||
|
||
# Build and test ASP on macOS. For now triggered by hand. | ||
|
||
# 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 | ||
~/projects/StereoPipelineTest | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/miniconda.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: run_test | ||
run: ./.github/workflows/build_test.sh | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: StereoPipeline_${{ matrix.os }} | ||
path: ~/work/StereoPipeline/StereoPipeline-OSX |
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