37 lines
695 B
YAML
37 lines
695 B
YAML
name: main
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends libpng-dev g++
|
|
|
|
- name: Build
|
|
run: |
|
|
make -j "$(nproc)"
|
|
|
|
- name: Install
|
|
run: |
|
|
make install DESTDIR="/tmp/firstci"
|
|
|
|
- name: Package
|
|
run: |
|
|
mkdir -p upload
|
|
mv /tmp/firstci upload
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: "executable"
|
|
path: upload/firstci/bin/png_ssim_down
|