mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 21:27:54 +00:00
Fix workflows (#1566)
* Change checkout action version * Add JAVA_HOME to 32 bit oracle * Move alt linux to short test suite, drop ubuntu 18
This commit is contained in:
parent
cad2e324fb
commit
b7514ee19a
24
.github/workflows/alt_linux_distros.yml
vendored
24
.github/workflows/alt_linux_distros.yml
vendored
@ -12,7 +12,6 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
cfg:
|
cfg:
|
||||||
#-------- Operating Systems ----------------
|
#-------- Operating Systems ----------------
|
||||||
- { os: ubuntu, tag: 18.04, arch: debian, arch_ver: 10 }
|
|
||||||
- { os: ubuntu, tag: 20.04, arch: debian, arch_ver: 11 }
|
- { os: ubuntu, tag: 20.04, arch: debian, arch_ver: 11 }
|
||||||
- { os: debian, tag: 10, arch: debian, arch_ver: 10 }
|
- { os: debian, tag: 10, arch: debian, arch_ver: 10 }
|
||||||
- { os: debian, tag: 11, arch: debian, arch_ver: 11 }
|
- { os: debian, tag: 11, arch: debian, arch_ver: 11 }
|
||||||
@ -142,7 +141,7 @@ jobs:
|
|||||||
- name: Install GTest
|
- name: Install GTest
|
||||||
run: ${{matrix.install_gtest}}
|
run: ${{matrix.install_gtest}}
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: Configure Trick
|
- name: Configure Trick
|
||||||
run: |
|
run: |
|
||||||
export MAKEFLAGS=-j`nproc`
|
export MAKEFLAGS=-j`nproc`
|
||||||
@ -156,23 +155,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd share/trick/trickops/
|
cd share/trick/trickops/
|
||||||
python3 -m venv .venv && . .venv/bin/activate && pip3 install -r requirements.txt
|
python3 -m venv .venv && . .venv/bin/activate && pip3 install -r requirements.txt
|
||||||
cd ../../../; make test
|
cd ../../../; make test32
|
||||||
- name: Upload Tests
|
|
||||||
uses: actions/upload-artifact@v3.0.0
|
|
||||||
if: success() || failure() # run this step even if previous step failed
|
|
||||||
with:
|
|
||||||
name: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}}
|
|
||||||
path: trick_test/*.xml
|
|
||||||
retention-days: 1
|
|
||||||
# Uncomment for build artifacts
|
|
||||||
# - name: Upload Trick Build
|
|
||||||
# uses: actions/upload-artifact@v3.0.0
|
|
||||||
# with:
|
|
||||||
# name: Trick_${{matrix.cfg.os}}${{matrix.cfg.tag}}_py${{matrix.python}}
|
|
||||||
# path: |
|
|
||||||
# bin
|
|
||||||
# include
|
|
||||||
# lib
|
|
||||||
# share
|
|
||||||
# libexec
|
|
||||||
# retention-days: 1
|
|
4
.github/workflows/test_32.yml
vendored
4
.github/workflows/test_32.yml
vendored
@ -10,8 +10,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: docker://centos:7
|
container: docker://centos:7
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@master
|
|
||||||
- name: Add yum repo
|
- name: Add yum repo
|
||||||
run: yum -y install epel-release.noarch && yum -y update
|
run: yum -y install epel-release.noarch && yum -y update
|
||||||
- name: Install dependency group
|
- name: Install dependency group
|
||||||
@ -53,6 +51,8 @@ jobs:
|
|||||||
cmake .
|
cmake .
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
- name: Build Trick
|
- name: Build Trick
|
||||||
run: |
|
run: |
|
||||||
yum -y update && yum clean all
|
yum -y update && yum clean all
|
||||||
|
3
.github/workflows/test_32_oracle.yml
vendored
3
.github/workflows/test_32_oracle.yml
vendored
@ -56,12 +56,13 @@ jobs:
|
|||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: Build Trick
|
- name: Build Trick
|
||||||
run: |
|
run: |
|
||||||
export CFLAGS="-m32"
|
export CFLAGS="-m32"
|
||||||
export CXXFLAGS="-m32"
|
export CXXFLAGS="-m32"
|
||||||
export MAKEFLAGS=-j`nproc`
|
export MAKEFLAGS=-j`nproc`
|
||||||
|
export JAVA_HOME=$(dirname $(dirname $(readlink -f `which java`)))
|
||||||
./configure --without-hdf5 --enable-32bit
|
./configure --without-hdf5 --enable-32bit
|
||||||
make
|
make
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
2
.github/workflows/test_linux.yml
vendored
2
.github/workflows/test_linux.yml
vendored
@ -139,7 +139,7 @@ jobs:
|
|||||||
- name: Install GTest
|
- name: Install GTest
|
||||||
run: ${{matrix.install_gtest}}
|
run: ${{matrix.install_gtest}}
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
- name: Configure Trick
|
- name: Configure Trick
|
||||||
run: |
|
run: |
|
||||||
export MAKEFLAGS=-j`nproc`
|
export MAKEFLAGS=-j`nproc`
|
||||||
|
Loading…
Reference in New Issue
Block a user