Skip to content

Update check_build.yml #5

Update check_build.yml

Update check_build.yml #5

Workflow file for this run

name: Run tests and checks (ubuntu)
on:
push:
branches:
- main
- test-workflow
pull_request:
branches:
- main
- test-workflow
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/kss2k/container-modsem:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set environment variables for compilation flags
run: |
echo "CC=gcc-7 -std=gnu99" >> $GITHUB_ENV
echo "CFLAGS=-g -O3 -Wall -pedantic -mtune=native -D_FORTIFY_SOURCE=2" >> $GITHUB_ENV
echo "CXXFLAGS=-g -O3 -Wall -pedantic -mtune=native -frtti -Wno-ignored-attributes -Wno-deprecated-declarations -D_FORTIFY_SOURCE=2" >> $GITHUB_ENV
echo "FFLAGS=-g -O2 -mtune=native -Wall -pedantic" >> $GITHUB_ENV
echo "FCFLAGS=-g -O2 -mtune=native -Wall -pedantic" >> $GITHUB_ENV
- name: Run tests
run: |
Rscript -e 'devtools::test(stop_on_failure = TRUE)'
- name: R CMD CHECK
run: |
Rscript -e 'devtools::check(error_on = "warning")'