63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
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++ ccache
|
|
|
|
# probably bad example, doesn't work with my program
|
|
- name: ccache
|
|
uses: hendrikmuhs/ccache-action@v1
|
|
with:
|
|
key: g++_ubuntu_20.04
|
|
max-size: 50M
|
|
|
|
- name: Build
|
|
run: |
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
|
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_percept_down
|
|
|
|
#~ upload:
|
|
#~ name: Make Release and upload Artifacts
|
|
#~ needs:
|
|
#~ - build
|
|
#~ runs-on: ubuntu-20.04
|
|
#~ steps:
|
|
#~ - uses: actions/download-artifact@v2
|
|
#~ - name: Show artifact files
|
|
#~ run: |
|
|
#~ ls -alFR
|
|
#~ - name: Make Release and upload Artifacts
|
|
#~ env:
|
|
#~ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
#~ run: |
|
|
#~ wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
|
|
#~ chmod +x pyuploadtool-x86_64.AppImage
|
|
#~ ./pyuploadtool-x86_64.AppImage **/png_percept_down
|