2022-09-18 05:13:27 +08:00
|
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
|
|
|
|
|
|
|
name: dist
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
|
|
|
- '*/ci'
|
2022-09-18 05:13:27 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-12-06 18:05:20 +08:00
|
|
|
- master
|
2022-09-18 05:13:27 +08:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-04-07 18:01:25 +08:00
|
|
|
permissions: {}
|
|
|
|
|
2022-09-18 05:13:27 +08:00
|
|
|
jobs:
|
|
|
|
maketgz-and-verify-in-tree:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
2024-05-20 22:25:03 +08:00
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
|
2023-12-06 18:05:20 +08:00
|
|
|
|
|
|
|
- run: sudo apt-get purge -y curl libcurl4 libcurl4-doc
|
|
|
|
name: 'remove preinstalled curl libcurl4{-doc}'
|
|
|
|
|
|
|
|
- run: autoreconf -fi
|
|
|
|
name: 'autoreconf'
|
|
|
|
|
2024-01-08 23:49:21 +08:00
|
|
|
- run: ./configure --without-ssl --without-libpsl
|
2023-12-06 18:05:20 +08:00
|
|
|
name: 'configure'
|
|
|
|
|
|
|
|
- run: make V=1 && make V=1 clean
|
|
|
|
name: 'make and clean'
|
|
|
|
|
2024-04-09 20:18:23 +08:00
|
|
|
- name: 'maketgz'
|
|
|
|
run: |
|
|
|
|
SOURCE_DATE_EPOCH=1711526400 ./maketgz 99.98.97
|
|
|
|
|
|
|
|
- name: 'maketgz reproducibility test'
|
|
|
|
run: |
|
|
|
|
mkdir run1; mv ./curl-99.98.97.* run1/
|
|
|
|
make V=1 && make V=1 clean
|
|
|
|
SOURCE_DATE_EPOCH=1711526400 ./maketgz 99.98.97
|
|
|
|
mkdir run2; cp -p ./curl-99.98.97.* run2/
|
|
|
|
diff run1 run2
|
2023-12-06 18:05:20 +08:00
|
|
|
|
2024-05-15 17:39:30 +08:00
|
|
|
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
|
2023-12-06 18:05:20 +08:00
|
|
|
with:
|
|
|
|
name: 'release-tgz'
|
|
|
|
path: 'curl-99.98.97.tar.gz'
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
echo "::stop-commands::$(uuidgen)"
|
|
|
|
tar xvf curl-99.98.97.tar.gz
|
|
|
|
pushd curl-99.98.97
|
2024-01-08 23:49:21 +08:00
|
|
|
./configure --prefix=$HOME/temp --without-ssl --without-libpsl
|
2024-04-08 21:18:35 +08:00
|
|
|
make -j3
|
|
|
|
make -j3 test-ci
|
|
|
|
make -j3 install
|
2023-12-06 18:05:20 +08:00
|
|
|
popd
|
|
|
|
# basic check of the installed files
|
|
|
|
bash scripts/installcheck.sh $HOME/temp
|
|
|
|
rm -rf curl-99.98.97
|
|
|
|
name: 'verify in-tree configure build including install'
|
2022-09-18 05:13:27 +08:00
|
|
|
|
|
|
|
verify-out-of-tree-docs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
|
|
|
needs: maketgz-and-verify-in-tree
|
|
|
|
steps:
|
2024-05-15 17:39:30 +08:00
|
|
|
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4
|
2023-12-06 18:05:20 +08:00
|
|
|
with:
|
|
|
|
name: 'release-tgz'
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
echo "::stop-commands::$(uuidgen)"
|
|
|
|
tar xvf curl-99.98.97.tar.gz
|
|
|
|
touch curl-99.98.97/docs/{cmdline-opts,libcurl}/Makefile.inc
|
|
|
|
mkdir build
|
|
|
|
pushd build
|
2024-01-08 23:49:21 +08:00
|
|
|
../curl-99.98.97/configure --without-ssl --without-libpsl
|
2024-04-08 21:18:35 +08:00
|
|
|
make -j3
|
|
|
|
make -j3 test-ci
|
2023-12-06 18:05:20 +08:00
|
|
|
popd
|
|
|
|
rm -rf build
|
|
|
|
rm -rf curl-99.98.97
|
|
|
|
name: 'verify out-of-tree configure build including docs'
|
2022-09-18 05:13:27 +08:00
|
|
|
|
2023-10-11 17:07:03 +08:00
|
|
|
verify-out-of-tree-autotools-debug:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
|
|
|
needs: maketgz-and-verify-in-tree
|
|
|
|
steps:
|
2024-05-15 17:39:30 +08:00
|
|
|
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4
|
2023-12-06 18:05:20 +08:00
|
|
|
with:
|
|
|
|
name: 'release-tgz'
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
echo "::stop-commands::$(uuidgen)"
|
|
|
|
tar xvf curl-99.98.97.tar.gz
|
|
|
|
pushd curl-99.98.97
|
|
|
|
mkdir build
|
|
|
|
pushd build
|
2024-01-08 23:49:21 +08:00
|
|
|
../configure --without-ssl --enable-debug "--prefix=${PWD}/pkg" --without-libpsl
|
2023-12-06 18:05:20 +08:00
|
|
|
make -j3
|
2023-12-12 01:57:48 +08:00
|
|
|
make -j3 test-ci
|
2023-12-06 18:05:20 +08:00
|
|
|
make -j3 install
|
|
|
|
name: 'verify out-of-tree autotools debug build'
|
2023-10-11 17:07:03 +08:00
|
|
|
|
2022-09-18 05:13:27 +08:00
|
|
|
verify-out-of-tree-cmake:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 30
|
|
|
|
needs: maketgz-and-verify-in-tree
|
|
|
|
steps:
|
2024-05-15 17:39:30 +08:00
|
|
|
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4
|
2023-12-06 18:05:20 +08:00
|
|
|
with:
|
|
|
|
name: 'release-tgz'
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
echo "::stop-commands::$(uuidgen)"
|
|
|
|
tar xvf curl-99.98.97.tar.gz
|
|
|
|
pushd curl-99.98.97
|
2024-04-08 21:18:35 +08:00
|
|
|
cmake -B build -DCURL_WERROR=ON
|
|
|
|
make -C build -j3
|
2023-12-06 18:05:20 +08:00
|
|
|
name: 'verify out-of-tree cmake build'
|