From e20e5b31fc7bd03e663c159a27a837da85a6307b Mon Sep 17 00:00:00 2001 From: Jonathan Moallem Date: Tue, 24 Nov 2020 15:57:45 +1100 Subject: [PATCH] Made actions only collect artifacts on failure --- .github/workflows/macOS.yml | 1 + .github/workflows/ubuntu.yml | 3 ++- Makefile | 1 - README.md | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml index 0ee8525..5bf6f86 100644 --- a/.github/workflows/macOS.yml +++ b/.github/workflows/macOS.yml @@ -17,6 +17,7 @@ jobs: - name: make test run: make test - name: save logs as artifact + if: ${{ failure() }} uses: actions/upload-artifact@v2 with: name: logs diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 1ce122e..1a6d9a7 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -19,8 +19,9 @@ jobs: - name: make setup run: make setup - name: make test - run: make test + run: make test - name: save logs as artifact + if: ${{ failure() }} uses: actions/upload-artifact@v2 with: name: logs diff --git a/Makefile b/Makefile index 2fefdfa..89ca3f6 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,6 @@ clean: check: # Search the execution log for mention of raylib starting - cat $(tempDir)/execute.log $(eval VAR = $(shell grep -c "raylib" $(tempDir)/execute.log)) if [ $(VAR) -gt 0 ];\ then echo "Application was started";\ diff --git a/README.md b/README.md index 2c2c19b..00e9364 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ So that being said, we hope that this repository finds you well and wholehearted ### Current Compatibility | OS | Default Compiler | Last Built On | Status | | ----------- | ---------------- | ------------------ | -------- | -| **macOS** | Clang++ | `Big Sur 11.0.1` | ![macOS Status](https://github.com/CapsCollective/raylib-cpp-starter/workflows/macOS-build/badge.svg) | -| **Linux** | G++ | `Ubuntu 20.04 LTS` | ![Linux Status](https://github.com/CapsCollective/raylib-cpp-starter/workflows/ubuntu-build/badge.svg) | -| **Windows** | MinGW (G++) | `Windows 10 19041` | ![Windows Status](https://github.com/CapsCollective/raylib-cpp-starter/workflows/windows-build/badge.svg) | +| **macOS** | Clang++ | `Big Sur 11.0.1` | ![macOS Status](https://github.com/CapsCollective/raylib-cpp-starter/workflows/macOS/badge.svg) | +| **Linux** | G++ | `Ubuntu 20.04 LTS` | ![Linux Status](https://github.com/CapsCollective/raylib-cpp-starter/workflows/ubuntu/badge.svg) | +| **Windows** | MinGW (G++) | `Windows 10 19041` | ![Windows Status](https://github.com/CapsCollective/raylib-cpp-starter/workflows/windows/badge.svg) | ## Getting Started