Skip to content

print simulation parameters. #137

print simulation parameters.

print simulation parameters. #137

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Tests
run: |
mkdir build && cd build
cmake ..
make all
- name: Run Tests
run: |
cd build
ctest
- name: Upload build artifacts
uses: actions/upload-artifact@v2
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main')
with:
name: build-artifacts
path: build/
docker:
runs-on: ubuntu-latest
needs: build
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main')
steps:
- uses: actions/checkout@v3
- name: Download the build artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: ./build
- name: Build Docker Image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/gray-scott-sim-cpp-with-tests .
- name: docker login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker Image
run: docker push ${{ secrets.DOCKER_USERNAME }}/gray-scott-sim-cpp-with-tests