chdman/.github/workflows/ci-linux.yml
CharlesThobe 33e60253d9 CI stuff
2022-04-18 00:39:17 +02:00

47 lines
997 B
YAML

name: CI (Linux)
on:
# push:
# paths:
# - '.github/**'
# - '3rdparty/**'
# - 'hash/**'
# - 'scripts/**'
# - 'src/**'
# - 'CMakeLists.txt'
# - 'cmake_subdirs/**'
# pull_request:
# paths:
# - '.github/**'
# - '3rdparty/**'
# - 'hash/**'
# - 'scripts/**'
# - 'src/**'
# - 'CMakeLists.txt'
# - 'cmake_subdirs/**'
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y build-essential ninja-build
- name: Build
run: |
cmake -G Ninja
ninja
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: test
- uses: actions/upload-artifact@v2
with:
name: chdman-linux-${{ steps.previoustag.outputs.tag }}
path: chdman