2020-03-08 15:36:14 -04:00
|
|
|
name: Build Test
|
|
|
|
|
2020-05-10 16:35:13 -04:00
|
|
|
on: [push, pull_request]
|
2020-03-08 15:36:14 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-03-08 15:53:10 -04:00
|
|
|
- name: Install dependencies
|
2020-03-10 10:32:52 -04:00
|
|
|
run: sudo apt install pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev
|
2020-05-10 15:33:28 -04:00
|
|
|
- name: Make build script executable
|
|
|
|
run: chmod +x build.sh
|
|
|
|
- name: Run build script
|
2020-05-10 16:35:56 -04:00
|
|
|
run: ./build.sh
|
2020-03-08 15:36:14 -04:00
|
|
|
- name: make check
|
2020-05-10 16:08:41 -04:00
|
|
|
run: cd build && make check
|
2020-03-08 15:36:14 -04:00
|
|
|
- name: make distcheck
|
2020-05-10 16:16:39 -04:00
|
|
|
run: cd build && make distcheck
|
2020-05-10 16:54:14 -04:00
|
|
|
bin:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
2020-05-10 17:32:31 -04:00
|
|
|
- run: ls -lah /home/runner/work/i3lock-color && ls -lah /home/runner/work/i3lock-color/build && ls -lah /home/runner/work/i3lock-color/i3lock-color && ls -lah /home/runner/work/i3lock-color/i3lock-color/build
|
2020-05-10 17:02:07 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-05-10 16:35:13 -04:00
|
|
|
with:
|
2020-05-10 17:02:07 -04:00
|
|
|
name: i3lock
|
|
|
|
path: /home/runner/work/i3lock-color/i3lock-color/build/i3lock
|