mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
8b368fa3c9
- github/codeql-action digest to 23acc5c - actions/checkout digest to 692973e - rojopolis/spellcheck-github-actions digest to d354a4d Closes #13935 Closes #13945 Closes #13946
94 lines
2.6 KiB
YAML
94 lines
2.6 KiB
YAML
# Copyright (C) Viktor Szakats
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
---
|
|
name: curl-for-win
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- '*/ci'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: {}
|
|
|
|
env:
|
|
CW_NOGET: 'curl trurl'
|
|
CW_MAP: '0'
|
|
CW_JOBS: '5'
|
|
CW_NOPKG: '1'
|
|
DOCKER_CONTENT_TRUST: '1'
|
|
|
|
jobs:
|
|
linux-musl-llvm:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
with:
|
|
path: 'curl'
|
|
fetch-depth: 8
|
|
- name: 'build'
|
|
run: |
|
|
git clone --depth 1 https://github.com/curl/curl-for-win
|
|
mv curl-for-win/* .
|
|
export CW_CONFIG='-main-werror-linux-musl-x64'
|
|
export CW_REVISION='${{ github.sha }}'
|
|
. ./_versions.sh
|
|
docker trust inspect --pretty "${DOCKER_IMAGE}"
|
|
time docker pull "${DOCKER_IMAGE}"
|
|
docker images --digests
|
|
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
|
|
--env-file <(env | grep -a -E \
|
|
'^(CW_|GITHUB_)') \
|
|
"${DOCKER_IMAGE}" \
|
|
sh -c ./_ci-linux-debian.sh
|
|
|
|
mac-clang:
|
|
runs-on: macos-latest
|
|
timeout-minutes: 30
|
|
env:
|
|
CW_JOBS: '4'
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
with:
|
|
path: 'curl'
|
|
fetch-depth: 8
|
|
- name: 'build'
|
|
run: |
|
|
git clone --depth 1 https://github.com/curl/curl-for-win
|
|
mv curl-for-win/* .
|
|
export CW_CONFIG='-main-werror-mac-x64'
|
|
export CW_REVISION='${{ github.sha }}'
|
|
sh -c ./_ci-mac-homebrew.sh
|
|
|
|
win-llvm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
with:
|
|
path: 'curl'
|
|
fetch-depth: 8
|
|
- name: 'build'
|
|
run: |
|
|
git clone --depth 1 https://github.com/curl/curl-for-win
|
|
mv curl-for-win/* .
|
|
export CW_CONFIG='-main-werror-win-x64'
|
|
export CW_REVISION='${{ github.sha }}'
|
|
. ./_versions.sh
|
|
docker trust inspect --pretty "${DOCKER_IMAGE}"
|
|
time docker pull "${DOCKER_IMAGE}"
|
|
docker images --digests
|
|
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
|
|
--env-file <(env | grep -a -E \
|
|
'^(CW_|GITHUB_)') \
|
|
"${DOCKER_IMAGE}" \
|
|
sh -c ./_ci-linux-debian.sh
|