Skip to content
Empty file removed .github/workflows/.gitkeep
Empty file.
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: gpg 1.10.0

defaults:
run:
shell: bash

on: pull_request

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, macos-10.15]

steps:
- uses: actions/checkout@v2

# Used to host cibuildwheel
- uses: actions/setup-python@v2

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.1.2

- name: Fetch source distribution
run: |
curl https://files.pythonhosted.org/packages/ef/86/c5a34243a932346c59cb25eb49a4d1dec227974209eb9b618d0ed57ea5be/gpg-1.10.0.tar.gz -o gpg-1.10.0.tar.gz
tar -zxf gpg-1.10.0.tar.gz
mv gpg-1.10.0/* .

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
CIBW_BUILD: "cp*"
CIBW_BEFORE_ALL_WINDOWS: |
$env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin"
[Environment]::SetEnvironmentVariable("Path", $env:PATH, "Machine")
choco install --yes --trace gnupg
echo "C:\Program Files (x86)\Gpg4win\..\GnuPG\bin" >> $env:GITHUB_PATH
CIBW_BEFORE_ALL_MACOS: brew install gpgme

- name: Checksum
uses: Huy-Ngo/gha-sha@v1.1.0
with:
glob: 'wheelhouse/*.whl'
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl

- name: Release
uses: softprops/action-gh-release@v1
with:
name: 'Release: gpg 1.10.0'
files: wheelhouse/*.whl
tag_name: gpg-1.10.0