firstci/.github/workflows/main.yml

37 lines
695 B
YAML
Raw Normal View History

2021-09-21 08:50:12 -07:00
name: main
on:
2021-09-21 08:51:56 -07:00
push:
branches:
- master
tags:
- '*'
2021-09-21 08:50:12 -07:00
jobs:
2021-09-21 08:51:56 -07:00
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
2021-09-21 08:50:12 -07:00
2021-09-21 08:51:56 -07:00
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libpng-dev g++
2021-09-21 08:50:12 -07:00
2021-09-21 08:51:56 -07:00
- name: Build
run: |
make -j "$(nproc)"
2021-09-21 08:50:12 -07:00
2021-09-21 08:51:56 -07:00
- name: Install
run: |
make install DESTDIR="/tmp/firstci"
2021-09-21 08:50:12 -07:00
2021-09-21 08:51:56 -07:00
- name: Package
run: |
2021-09-21 08:52:57 -07:00
mkdir -p upload
mv /tmp/firstci upload
2021-09-21 08:50:12 -07:00
2021-09-21 08:51:56 -07:00
- uses: actions/upload-artifact@v2
with:
name: "executable"
2021-09-21 09:05:36 -07:00
path: upload/firstci/bin/png_ssim_down