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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
name: CI
on:
- pull_request
- push
jobs:
build:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libjson-glib-dev #osc
- uses: actions/cache@v2
id: cache
with:
path: /tmp/bitlbee/
key: bitlbee
- name: clone bitlbee
if: steps.cache.outputs.cache-hit != 'true'
run: |
git clone https://github.com/bitlbee/bitlbee /tmp/bitlbee
- name: build bitlbee
run: |
cd /tmp/bitlbee
git pull --ff-only
./configure \
--events=glib \
--ssl=gnutls \
--doc=0 \
--jabber=0 \
--msn=0 \
--oscar=0 \
--twitter=0 \
--yahoo=0
make
sudo make install install-dev
- name: bitlbee-facebook
run: |
CFLAGS="-Werror" ./autogen.sh --enable-warnings
make all clean
- name: scan-build
run: |
scan-build -k --status-bugs make all clean
obs:
if: ${{github.ref == 'refs/head/master' && github.event_name == 'push'}}
runs-on: ubuntu-20.04
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
/tmp/bitlbee/
key: bitlbee
- name: bitlbee headers
run: |
cd /tmp/bitlbee
sudo make install install-dev
- name: Dependencies
run: |
echo "deb http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_$(lsb_release -rs) ./" \
| sudo tee /etc/apt/sources.list.d/suse.list
## this key expired literally three days ago:
##
## pub rsa2048 2018-09-25 [SC] [expired: 2020-12-03]
## FCADAFC81273B9E7F184F2B0826659A9013E5B65
## uid openSUSE:Tools OBS Project <openSUSE:Tools@build.opensuse.org>
#
#curl -s "http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_$(lsb_release -rs)/Release.key" \
# | sudo apt-key add -
#
## and for Mysterious Reasons this other key exists with the same fingerprint,
## but expiring three years later:
curl -s "https://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_Tumbleweed/repodata/repomd.xml.key" \
| sudo apt-key add -
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends osc
- name: Send job to OBS
env:
OBSUSER: ${{ secrets.OBSUSER }}
OBSPASS: ${{ secrets.OBSPASS }}
run: |
.travis/obs.sh
|