aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/fedora-rawhide.yml
blob: 1303af295ffadab544e41b1274e6b836153c3cfb (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
name: Fedora/Rawhide

on:
  workflow_dispatch:
  schedule:
  - cron: "0 0 * * *"

concurrency:
  group: "${{ github.workflow }}-${{ github.ref }}"
  cancel-in-progress: true

permissions:
  contents: read

jobs:
  build_and_test:
    strategy:
      matrix:
        cc: [ gcc, clang ]
    name: ${{ matrix.cc }}
    runs-on: ubuntu-latest
    if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }}
    container:
      image: fedora:rawhide
    steps:
    - uses: actions/checkout@v3
    - name: Install dependencies
      run: |
        dnf -y install git make clang cmake ninja-build autoconf automake libtool diffutils patch
    - name: Pull upstream source
      run: |
        ./update.sh
    - name: Build
      run: |
         CC=${{ matrix.cc }} cmake -GNinja -DBUILD_SHARED_LIBS=ON .
         ninja
    - name: Test
      run: |
         ninja test