-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional: added NIST85 summary and duration files to the NIST result artifact
- Loading branch information
Showing
1 changed file
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,99 @@ | ||
name: Ubuntu Workflow | ||
|
||
on: | ||
|
||
pull_request: | ||
branches: [ gcos4gnucobol-3.x ] | ||
push: | ||
# manual run in actions tab - for all branches | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
minmal_build: | ||
name: Build and test with minimal dependencies | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install automake libtool bison flex help2man | ||
- name: Set git user | ||
run: | | ||
git config --global user.name github-actions | ||
git config --global user.email [email protected] | ||
- name: Build environment setup | ||
run: | | ||
./build_aux/bootstrap | ||
mkdir _build | ||
- name: Configure | ||
run: | | ||
cd _build | ||
../configure --disable-dependency-tracking \ | ||
--without-db --without-curses \ | ||
--without-xml2 --without-json \ | ||
--without-iconv --disable-nls | ||
- name: Upload config.log | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: config-${{ matrix.os }}.log | ||
path: _build/config.log | ||
|
||
- name: Build | ||
run: | | ||
make -C _build --jobs=$(($(nproc)+1)) | ||
- name: run internal tests | ||
run: | | ||
make -C _build check TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" || \ | ||
make -C _build check TESTSUITEFLAGS="--recheck --verbose" | ||
- name: Upload testsuite.log | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: testsuite-${{ matrix.os }}.log | ||
path: _build/tests/testsuite.log | ||
|
||
- name: Cache newcob.val | ||
uses: actions/cache@v4 | ||
with: | ||
path: _build/tests/cobol85/newcob.val | ||
key: newcob-val | ||
save-always: true | ||
enableCrossOsArchive: true | ||
|
||
- name: NIST85 Test Suite | ||
run: | | ||
make -C _build/tests/cobol85 EXEC85 test \ | ||
--jobs=$(($(nproc)+1)) | ||
- name: Upload NIST85 Test Suite results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: NIST85 results on ${{ matrix.os }} | ||
path: | | ||
_build/tests/cobol85/summary.* | ||
_build/tests/cobol85/**/*.log | ||
_build/tests/cobol85/**/*.out | ||
_build/tests/cobol85/**/duration.txt | ||
build: | ||
name: Build, test and provide nightly | ||
strategy: | ||
|
@@ -120,8 +206,10 @@ jobs: | |
with: | ||
name: NIST85 results on ${{ matrix.os }} | ||
path: | | ||
_build/tests/cobol85/summary.* | ||
_build/tests/cobol85/**/*.log | ||
_build/tests/cobol85/**/*.out | ||
_build/tests/cobol85/**/duration.txt | ||
coverage: | ||
|
@@ -223,4 +311,3 @@ jobs: | |
# Shall fail until we have a working account on codecov.io | ||
fail_ci_if_error: false # optional (default = false) | ||
verbose: true # optional (default = false) | ||
|