-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into cynhr-email-tlsname
- Loading branch information
Showing
213 changed files
with
7,243 additions
and
1,748 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
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
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
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
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
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 |
---|---|---|
|
@@ -91,18 +91,27 @@ jobs: | |
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | ||
- name: Artifact name | ||
id: artifact-name | ||
# We can't have colons in the upload name of the artifact, so we convert | ||
# e.g. `debian:sid` to `sid`. | ||
env: | ||
DISTRO: ${{ matrix.distro }} | ||
run: | | ||
echo "ARTIFACT_NAME=${DISTRO#*:}" >> "$GITHUB_OUTPUT" | ||
- name: Upload debs as artifacts | ||
uses: actions/upload-artifact@v3 # Don't upgrade to v4; broken: https://github.com/actions/upload-artifact#breaking-changes | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: debs | ||
name: debs-${{ steps.artifact-name.outputs.ARTIFACT_NAME }} | ||
path: debs/* | ||
|
||
build-wheels: | ||
name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-12] | ||
os: [ubuntu-22.04, macos-13] | ||
arch: [x86_64, aarch64] | ||
# is_pr is a flag used to exclude certain jobs from the matrix on PRs. | ||
# It is not read by the rest of the workflow. | ||
|
@@ -112,9 +121,9 @@ jobs: | |
exclude: | ||
# Don't build macos wheels on PR CI. | ||
- is_pr: true | ||
os: "macos-12" | ||
os: "macos-13" | ||
# Don't build aarch64 wheels on mac. | ||
- os: "macos-12" | ||
- os: "macos-13" | ||
arch: aarch64 | ||
# Don't build aarch64 wheels on PR CI. | ||
- is_pr: true | ||
|
@@ -144,7 +153,7 @@ jobs: | |
|
||
- name: Only build a single wheel on PR | ||
if: startsWith(github.ref, 'refs/pull/') | ||
run: echo "CIBW_BUILD="cp38-manylinux_${{ matrix.arch }}"" >> $GITHUB_ENV | ||
run: echo "CIBW_BUILD="cp39-manylinux_${{ matrix.arch }}"" >> $GITHUB_ENV | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
|
@@ -156,9 +165,9 @@ jobs: | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
CIBW_ENVIRONMENT_PASS_LINUX: CARGO_NET_GIT_FETCH_WITH_CLI | ||
|
||
- uses: actions/upload-artifact@v3 # Don't upgrade to v4; broken: https://github.com/actions/upload-artifact#breaking-changes | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Wheel | ||
name: Wheel-${{ matrix.os }}-${{ matrix.arch }} | ||
path: ./wheelhouse/*.whl | ||
|
||
build-sdist: | ||
|
@@ -177,7 +186,7 @@ jobs: | |
- name: Build sdist | ||
run: python -m build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 # Don't upgrade to v4; broken: https://github.com/actions/upload-artifact#breaking-changes | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Sdist | ||
path: dist/*.tar.gz | ||
|
@@ -194,17 +203,23 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download all workflow run artifacts | ||
uses: actions/download-artifact@v3 # Don't upgrade to v4, it should match upload-artifact | ||
uses: actions/download-artifact@v4 | ||
- name: Build a tarball for the debs | ||
run: tar -cvJf debs.tar.xz debs | ||
# We need to merge all the debs uploads into one folder, then compress | ||
# that. | ||
run: | | ||
mkdir debs | ||
mv debs*/* debs/ | ||
tar -cvJf debs.tar.xz debs | ||
- name: Attach to release | ||
uses: softprops/action-gh-release@a929a66f232c1b11af63782948aa2210f981808a # PR#109 | ||
# Pinned to work around https://github.com/softprops/action-gh-release/issues/445 | ||
uses: softprops/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
Sdist/* | ||
Wheel/* | ||
Wheel*/* | ||
debs.tar.xz | ||
# if it's not already published, keep the release as a draft. | ||
draft: true | ||
|
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
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
Oops, something went wrong.