-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (34 loc) · 1.06 KB
/
check_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 -O2 -Wall -pedantic -fomit-frame-pointer" >> $GITHUB_ENV
echo "CXXFLAGS=-g -O2 -Wall -pedantic -fomit-frame-pointer" >> $GITHUB_ENV
echo "FFLAGS=-g -O2 -Wall -pedantic" >> $GITHUB_ENV
echo "FCFLAGS=-g -O2 -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")'