]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - .github/workflows/ci.yml
Update vendor/libarchive/dist to git 833821f55b1807cac22a63a58b759a7802df2fb7
[FreeBSD/FreeBSD.git] / .github / workflows / ci.yml
1 name: CI
2
3 on: [push, pull_request]
4
5 jobs:
6   MacOS:
7     runs-on: macos-latest
8     strategy:
9       matrix:
10         bs: [autotools, cmake]
11     steps:
12     - uses: actions/checkout@master
13     - name: Install dependencies
14       run: ./build/ci/github_actions/macos.sh prepare
15     - name: Autogen
16       run: ./build/ci/build.sh -a autogen
17       env:
18         BS: ${{ matrix.bs }}
19     - name: Configure
20       run: ./build/ci/build.sh -a configure
21       env:
22         BS: ${{ matrix.bs }}
23     - name: Build
24       run: ./build/ci/build.sh -a build
25       env:
26         BS: ${{ matrix.bs }}
27     - name: Test
28       run: ./build/ci/build.sh -a test
29       env:
30         BS: ${{ matrix.bs }}
31         SKIP_OPEN_FD_ERR_TEST: 1
32     - name: Install
33       run: ./build/ci/build.sh -a install
34       env:
35         BS: ${{ matrix.bs }}
36     - name: Artifact
37       run: ./build/ci/build.sh -a artifact
38       env:
39         BS: ${{ matrix.bs }}
40     - uses: actions/upload-artifact@v1
41       with:
42         name: libarchive-macos-${{ matrix.bs }}-${{ github.sha }}
43         path: libarchive.tar.xz
44
45   Ubuntu:
46     runs-on: ubuntu-20.04
47     strategy:
48       matrix:
49         bs: [autotools, cmake]
50         crypto: [mbedtls, nettle, openssl]
51     steps:
52     - uses: actions/checkout@master
53     - name: Install dependencies
54       run: sudo apt-get install -y build-essential cmake libssl-dev nettle-dev libmbedtls-dev libacl1-dev libbz2-dev liblzma-dev liblz4-dev libzstd-dev lzop
55     - name: Autogen
56       run: ./build/ci/build.sh -a autogen
57       env:
58         BS: ${{ matrix.bs }}
59     - name: Configure
60       run: ./build/ci/build.sh -a configure
61       env:
62         BS: ${{ matrix.bs }}
63         CRYPTO: ${{ matrix.crypto }}
64     - name: Build
65       run: ./build/ci/build.sh -a build
66       env:
67         BS: ${{ matrix.bs }}
68     - name: Test
69       run: ./build/ci/build.sh -a test
70       env:
71         BS: ${{ matrix.bs }}
72         SKIP_OPEN_FD_ERR_TEST: 1
73     - name: Install
74       run: ./build/ci/build.sh -a install
75       env:
76         BS: ${{ matrix.bs }}
77     - name: Artifact
78       run: ./build/ci/build.sh -a artifact
79       env:
80         BS: ${{ matrix.bs }}
81     - uses: actions/upload-artifact@v1
82       with:
83         name: libarchive-ubuntu-${{ matrix.bs }}-${{ matrix.crypto }}-${{ github.sha }}
84         path: libarchive.tar.xz
85   Ubuntu-distcheck:
86     runs-on: ubuntu-20.04
87     steps:
88     - uses: actions/checkout@master
89     - name: Install dependencies
90       run: sudo apt-get install -y build-essential cmake libssl-dev libacl1-dev libbz2-dev liblzma-dev liblz4-dev libzstd-dev lzop groff ghostscript
91     - name: Autogen
92       run: ./build/ci/build.sh -a autogen
93     - name: Configure
94       run: ./build/ci/build.sh -a configure
95     - name: Distcheck
96       run: ./build/ci/build.sh -a distcheck
97       env:
98         SKIP_OPEN_FD_ERR_TEST: 1
99
100   Windows:
101     runs-on: windows-latest
102     strategy:
103       matrix:
104         be: [mingw-gcc, msvc]
105     steps:
106     - uses: actions/checkout@master
107     - name: Install dependencies
108       run: ./build/ci/github_actions/ci.cmd deplibs
109       shell: cmd
110       env:
111         BE: ${{ matrix.be }}
112     - name: Configure
113       run: ./build/ci/github_actions/ci.cmd configure
114       shell: cmd
115       env:
116         BE: ${{ matrix.be }}
117     - name: Build
118       run: ./build/ci/github_actions/ci.cmd build
119       shell: cmd
120       env:
121         BE: ${{ matrix.be }}
122     - name: Test
123       run: ./build/ci/github_actions/ci.cmd test
124       shell: cmd
125       env:
126         BE: ${{ matrix.be }}
127     - name: Install
128       run: ./build/ci/github_actions/ci.cmd install
129       shell: cmd
130       env:
131         BE: ${{ matrix.be }}
132     - name: Artifact
133       run: ./build/ci/github_actions/ci.cmd artifact
134       shell: cmd
135       env:
136         BE: ${{ matrix.be }}
137     - uses: actions/upload-artifact@v1
138       with:
139         name: libarchive-windows-${{ matrix.be }}-${{ github.sha }}
140         path: libarchive.zip