Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ci.yml « workflows « .github - github.com/dequis/purple-facebook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 80fc162bcca36d1c47a77d53fe3c0994c760b423 (plain)
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
name: CI

on:
  - pull_request
  - push

jobs:
  build:
    runs-on: ubuntu-20.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 libjson-glib-dev libpurple-dev clang-tools

    - name: purple-facebook
      run: |
        ./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

    - 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 mercurial libjson-glib-dev
    - name: Send job to OBS
      env:
        OBSUSER: ${{ secrets.OBSUSER }}
        OBSPASS: ${{ secrets.OBSPASS }}
      run: |
        .travis/obs.sh