forked from github/backup-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.17 KB
/
main.yml
File metadata and controls
36 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test and build
on: [pull_request]
jobs:
build:
strategy:
matrix:
os: ['ubuntu-20.04', 'ubuntu-18.04', 'ubuntu-16.04', 'macos-latest']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies (Linux)
run: |
sudo apt-get update -y
sudo apt-get install -y devscripts debhelper moreutils fakeroot jq pigz help2man
wget "https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz"
tar --xz -xvf "shellcheck-latest.linux.x86_64.tar.xz"
sudo cp shellcheck-latest/shellcheck /usr/bin/shellcheck
if: matrix.os != 'macos-latest'
- name: Install Dependencies (macOS)
run: |
brew install gnu-tar shellcheck jq pigz coreutils gnu-sed gnu-getopt
brew unlink parallel
brew install moreutils gawk
if: matrix.os == 'macos-latest'
- name: Get Sources
uses: actions/checkout@v2
- name: Test
run: |
export PATH="$PATH:/snap/bin"
make test
shell: bash
- name: Build (Linux)
run: DEB_BUILD_OPTIONS=nocheck debuild -us -uc
if: matrix.os != 'macos-latest'