mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-10-18 10:19:58 +00:00
47 lines
1005 B
YAML
47 lines
1005 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@master
|
||
|
- 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@master
|
||
|
with:
|
||
|
name: chdman-linux-${{ steps.previoustag.outputs.tag }}
|
||
|
path: chdman
|
||
|
|