-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated Windows builds. Use curl-for-win with llvm + mingw64, and a minimal curl build with no external dependencies to build x64, ARM64 and x86 `trurl.exe`. Ref: #109 Closes #249
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright (C) Viktor Szakats. See LICENSE.md | ||
# SPDX-License-Identifier: curl | ||
--- | ||
# https://docs.github.com/actions/learn-github-actions | ||
name: curl-for-win | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
permissions: {} | ||
|
||
env: | ||
CW_MAP: '0' | ||
CW_JOBS: '3' | ||
DOCKER_CONTENT_TRUST: '1' | ||
|
||
jobs: | ||
win-llvm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: 'trurl' | ||
fetch-depth: 8 | ||
- name: 'build' | ||
env: | ||
CW_LLVM_MINGW_DL: '1' | ||
CW_LLVM_MINGW_ONLY: '0' | ||
run: | | ||
git clone --depth 1 https://github.com/curl/curl-for-win | ||
mv curl-for-win/* . | ||
export CW_GET='curl' | ||
export CW_PKG_NODELETE='1' | ||
export CW_CONFIG='${{ github.ref_name }}-dev-nozlib-pico-win' | ||
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 | ||
- name: 'list dependencies' | ||
run: cat urls.txt | ||
# https://github.com/actions/upload-artifact | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'trurl-windows-llvm' | ||
retention-days: 5 | ||
path: | | ||
curl-*-*-mingw*/bin/trurl.exe | ||
curl-*-*-mingw*/bin/libcurl*.dll |