Skip to content

Use Vectors

Use Vectors #32

# GitHub Continuous Integration Configuration
#
# EECS 280 contributing docs and GitHub Action docs:
# https://github.com/eecs280staff/p1-stats/blob/main/CONTRIBUTING.md
# https://docs.github.com/en/free-pro-team@latest/actions
name: Regression-Tests
# Define conditions for when to run this action
on:
pull_request: # Run on all pull requests
push: # Run on all pushes to main
branches:
- main
# A workflow run is made up of one or more jobs. Each job has an id. For
# example, "functional-tests (macOS-latest, g++)".
jobs:
test:
name: functional-tests
runs-on: ${{ matrix.os }}
strategy:
# Define OS and compiler versions to use
#
# Virtual Environments: OSes and preinstalled software:
# https://github.com/actions/virtual-environments
matrix:
include:
- os: ubuntu-latest
compiler: g++
- os: macOS-latest
compiler: g++
# Sequence of tasks for this job
steps:
# Check out latest code using a pre-existing GH action
# Docs: https://github.com/actions/checkout
- name: Checkout code
uses: actions/checkout@v2
# Run tests
- name: Run tests
env:
CXX: ${{ matrix.compiler }}
run: |
which $CXX
$CXX --version
make test
# Uncomment this chunk of YML code to open an SSH debug session to the GH
# actions server in case of a hard-to-debug failure. The SSH session is
# provided by tmate via a pre-existing GH action.
# Docs: https://github.com/mxschmitt/action-tmate
#
# Warning: use this sparingly since it will consume GitHub action credits
# until the SSH session is closed.
# \/ UNCOMMENT \/
# - name: Open SSH session on test failure
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# /\ UNCOMMENT /\