Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cicd action #5305

Draft
wants to merge 53 commits into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
5471d49
Added initial CI workflow
AustinSanders Sep 22, 2023
f72b6d6
Copy preferences to ISISROOT
AustinSanders Sep 25, 2023
832ad83
Fixed typo in workspace
AustinSanders Sep 25, 2023
457cdc0
Moved exports
AustinSanders Sep 26, 2023
bcdf214
Added swig path to cmake call
AustinSanders Sep 26, 2023
b8ca654
Copied env variables to test step
AustinSanders Sep 26, 2023
1fdaff2
Switched from rclone sync to mount
AustinSanders Sep 27, 2023
acd1b9d
Update rclone version to include mount command on osx
AustinSanders Sep 27, 2023
f48fecc
Enable verbose output for debugging
AustinSanders Sep 27, 2023
8dd8146
More debug attempts
AustinSanders Sep 27, 2023
e915065
Verbose mount command
AustinSanders Sep 27, 2023
dda84f9
Run mount in daemon mode
AustinSanders Sep 28, 2023
de8dfeb
ls data area
AustinSanders Sep 28, 2023
9c578d0
Remove steps for debugging
AustinSanders Sep 28, 2023
fb66236
undo previous commit
AustinSanders Sep 28, 2023
8ed75d8
export conda env
AustinSanders Sep 29, 2023
dba96f0
removed swig flag
Kelvinrr Oct 4, 2023
6a6fcd5
tweaking cmake
Kelvinrr Oct 4, 2023
00ec1fd
tweaking cmake w/ prepend
Kelvinrr Oct 4, 2023
60c7349
tweaking cmake w/ prepend
Kelvinrr Oct 4, 2023
8f8177d
trying to remove python
Kelvinrr Oct 4, 2023
d896c82
trying xlarge
Kelvinrr Oct 5, 2023
492c39f
trying xlarge
Kelvinrr Oct 5, 2023
72114b3
trying to limit parallel jobs, checking ISISDATA
Kelvinrr Oct 10, 2023
bbf79dd
Merge branch 'dev' of github.com:USGS-Astrogeology/ISIS3 into cicd_ac…
Kelvinrr Jun 24, 2024
aa27f5a
added line to only run ctests
Kelvinrr Jun 24, 2024
a316d73
added ls for cholmod
Kelvinrr Jun 24, 2024
a02823a
changed OS names
Kelvinrr Jun 24, 2024
1149c73
trying fedora
Kelvinrr Jun 24, 2024
3745ea8
trying fedora
Kelvinrr Jun 24, 2024
06a9b11
using 20.04
Kelvinrr Jun 24, 2024
732e961
using 22.04
Kelvinrr Jun 24, 2024
f820678
updated git
Kelvinrr Jun 24, 2024
d725384
updated git
Kelvinrr Jun 24, 2024
db6dbc3
removed mount command
Kelvinrr Jun 24, 2024
31f1d9b
removed mount command
Kelvinrr Jun 24, 2024
bca576d
removed mount command
Kelvinrr Jun 24, 2024
979180f
installing libgl
Kelvinrr Jun 25, 2024
fc94236
mac only
Kelvinrr Jun 26, 2024
78c76ad
j1
Kelvinrr Jun 27, 2024
61aa055
j1
Kelvinrr Jun 27, 2024
49364cc
pinned CXX
Kelvinrr Jun 27, 2024
8ba8ce4
pinned CXX
Kelvinrr Jun 27, 2024
d519d9c
removed mac
Kelvinrr Jun 28, 2024
9eb014d
added mounts back
Kelvinrr Jun 28, 2024
41385c6
removed ls's
Kelvinrr Jul 1, 2024
4af04cc
download?
Kelvinrr Jul 1, 2024
0848479
download?
Kelvinrr Jul 1, 2024
812ebda
downloadIsisData
Kelvinrr Jul 2, 2024
fee3621
downloadIsisData
Kelvinrr Jul 2, 2024
0851442
args moved
Kelvinrr Jul 5, 2024
ec83683
args moved
Kelvinrr Jul 5, 2024
f8d2459
args moved
Kelvinrr Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
branches:
- dev
push:
branches:
- dev

jobs:
Build-and-Test-LinuxOsx:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
defaults:
run:
shell: bash -l {0}
steps:
- name: update git
run: |
add-apt-repository ppa:git-core/ppa -y
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A1715D88E1DF1F24 40976EAF437D05B5 3B4FE6ACC0B21F32 A6616109451BBBF2
apt-get update
apt-get install git libgl1-mesa-glx -y
git --version
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
submodules: true
ref: dev
- uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3
with:
miniconda-version: "latest"
activate-environment: isis
environment-file: environment.yml
auto-activate-base: false
auto-update-conda: true
- name: Check build environment
run: |
conda list
conda env export
- name: Build ISIS
run: |
# apt autoremove python3 -y
mkdir -p build
cp ${GITHUB_WORKSPACE}/isis/IsisPreferences ${GITHUB_WORKSPACE}/build/
export ISISDATA=${GITHUB_WORKSPACE}/isis_data
export ISISTESTDATA=${GITHUB_WORKSPACE}/isis_testData
export ISISROOT=${GITHUB_WORKSPACE}/build/
export PATH=$PATH:${GITHUB_WORKSPACE}/build/bin/

cd build
cmake -DisisData=${GITHUB_WORKSPACE}/isis_data -DisisTestData=${GITHUB_WORKSPACE}/isis_testData -DJP2KFLAG=OFF -DCMAKE_BUILD_TYPE=RELEASE -Wdeprecated -GNinja ../isis
ninja -j1
- name: Run ISIS tests
run: |
# rclone mount asc_s3://asc-isisdata/usgs_data isis_data --config=${GITHUB_WORKSPACE}/isis/config/rclone.conf --daemon
# rclone mount asc_s3://asc-isisdata/isis_testData isis_testData --config=${GITHUB_WORKSPACE}/isis/config/rclone.conf --daemon

mkdir isis_data
mkdir isis_testData
cp ${GITHUB_WORKSPACE}/isis/config/rclone.conf .
./build/scripts/downloadIsisData --exclude "dems/" base isis_data/
ls isis_data/

cd build
export ISISDATA=${GITHUB_WORKSPACE}/isis_data
export ISISTESTDATA=${GITHUB_WORKSPACE}/isis_testData
export ISISROOT=${GITHUB_WORKSPACE}/build/
export PATH=$PATH:${GITHUB_WORKSPACE}/build/bin/
ctest -R '.' -E '(_app_|_unit_|_module_)' -j 8 --output-on-failure --timeout 10000

Loading