123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- # Copyright (C) Viktor Szakats
- #
- # SPDX-License-Identifier: curl
- ---
- name: curl-for-win
- 'on':
- push:
- branches:
- - master
- - '*/ci'
- paths-ignore:
- - '**/*.md'
- - '.circleci/**'
- - 'appveyor.*'
- - 'packages/**'
- - 'plan9/**'
- - 'projects/**'
- - 'winbuild/**'
- pull_request:
- branches:
- - master
- paths-ignore:
- - '**/*.md'
- - '.circleci/**'
- - 'appveyor.*'
- - 'packages/**'
- - 'plan9/**'
- - 'projects/**'
- - 'winbuild/**'
- 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'
- jobs:
- linux-glibc-llvm:
- runs-on: ubuntu-latest
- timeout-minutes: 30
- steps:
- - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- with:
- persist-credentials: false
- 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-a64-x64'
- export CW_REVISION='${{ github.sha }}'
- DOCKER_IMAGE='debian:bookworm-slim'
- DOCKER_CONTENT_TRUST=1
- export CW_CCSUFFIX='-15'
- export CW_GCCSUFFIX='-12'
- 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
- linux-musl-llvm:
- runs-on: ubuntu-latest
- timeout-minutes: 30
- steps:
- - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- with:
- persist-credentials: false
- 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-r64-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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- with:
- persist-credentials: false
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- with:
- persist-credentials: false
- 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
|