-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert GitHub actions to YAML, adjust release
Converts the existing GitHub action files to YAML to reduce some of the quotes, lines, and support comments. Changes the release process to build the sdist first and then the wheels are built from that sdist. Also adds macOS wheels to the publishing process. Signed-off-by: Jordan Borean <jborean93@gmail.com>
- Loading branch information
Showing
5 changed files
with
295 additions
and
355 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"daysUntilStale": 28, | ||
"daysUntilClose": 14, | ||
"staleLabel": "stale", | ||
"markComment": false, | ||
"only": "pulls", | ||
} | ||
# TODO: This is marked as deprecated - migrate to https://github.com/actions/stale | ||
# https://github.com/marketplace/actions/stale-for-actions | ||
daysUntilStale: 28 | ||
daysUntilClose: 14 | ||
staleLabel: stale | ||
markComment: 'false' | ||
only: pulls |
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 |
---|---|---|
@@ -1,135 +1,93 @@ | ||
{ | ||
"name": "Build", | ||
"on": { | ||
"push": { | ||
"branches-ignore": "gh-pages", | ||
"tags-ignore": "*", | ||
}, | ||
"pull_request": null, | ||
}, | ||
name: Build | ||
on: | ||
push: | ||
branches-ignore: gh-pages | ||
tags-ignore: '*' | ||
pull_request: null | ||
|
||
"jobs": { | ||
"linux": { | ||
"runs-on": "ubuntu-latest", | ||
"strategy": { | ||
"fail-fast": false, | ||
"matrix": { | ||
"name": ["debian-stable", "debian-heimdal", "centos-8", | ||
"fedora-latest"], | ||
"include": [ | ||
{ | ||
"name": "debian-stable", | ||
"distro": "debian:stable", | ||
}, | ||
{ | ||
"name": "debian-heimdal", | ||
"distro": "debian:stable", | ||
"krb5_ver": "heimdal", | ||
}, | ||
{ | ||
"name": "centos-8", | ||
"distro": "centos:8", | ||
}, | ||
{ | ||
"name": "fedora-latest", | ||
"distro": "fedora:latest", | ||
"flake": "yes", | ||
}, | ||
], | ||
}, | ||
}, | ||
"steps": [ | ||
{ | ||
"name": "Check out code", | ||
"uses": "actions/checkout@v2", | ||
}, | ||
{ | ||
"name": "Build and test gssapi", | ||
"run": "./ci/run-on-linux.sh ./ci/build.sh", | ||
"env": { | ||
"DISTRO": "${{ matrix.distro }}", | ||
"KRB5_VER": "${{ matrix.krb5_ver }}", | ||
"FLAKE": "${{ matrix.flake }}", | ||
}, | ||
}, | ||
], | ||
}, | ||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: | ||
- debian-stable | ||
- debian-heimdal | ||
- centos-8 | ||
- fedora-latest | ||
include: | ||
- name: debian-stable | ||
distro: debian:stable | ||
- name: debian-heimdal | ||
distro: debian:stable | ||
krb5_ver: heimdal | ||
- name: centos-8 | ||
distro: centos:8 | ||
- name: fedora-latest | ||
distro: fedora:latest | ||
flake: 'yes' | ||
|
||
"windows": { | ||
"runs-on": "windows-latest", | ||
"strategy": { | ||
"fail-fast": false, | ||
"matrix": { | ||
"name": [ | ||
"win-py-3.10", | ||
"win-py-3.9", | ||
"win-py-3.8", | ||
"win-py-3.7", | ||
"win-py-3.6", | ||
], | ||
"arch": [ | ||
"x64", | ||
"x86" | ||
], | ||
"include": [ | ||
{ | ||
"name": "win-py-3.10", | ||
"pyenv": "3.10", | ||
}, | ||
{ | ||
"name": "win-py-3.9", | ||
"pyenv": "3.9", | ||
}, | ||
{ | ||
"name": "win-py-3.8", | ||
"pyenv": "3.8", | ||
}, | ||
{ | ||
"name": "win-py-3.7", | ||
"pyenv": "3.7", | ||
}, | ||
{ | ||
"name": "win-py-3.6", | ||
"pyenv": "3.6", | ||
}, | ||
], | ||
}, | ||
}, | ||
"steps": [ | ||
{ | ||
"name": "Check out code", | ||
"uses": "actions/checkout@v2", | ||
}, | ||
{ | ||
"name": "Install the right python", | ||
"uses": "actions/setup-python@v2", | ||
"with": { | ||
"python-version": "${{ matrix.pyenv }}", | ||
"architecture": "${{ matrix.arch }}" | ||
}, | ||
}, | ||
{ | ||
"name": "Build and test gssapi", | ||
"shell": "bash", | ||
"run": "./ci/build.sh", | ||
"env": { "OS_NAME": "windows" }, | ||
}, | ||
], | ||
}, | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
"macos-heimdal": { | ||
"runs-on": "macos-latest", | ||
"steps": [ | ||
{ | ||
"name": "Check out code", | ||
"uses": "actions/checkout@v2", | ||
}, | ||
{ | ||
"name": "Build and test gssapi", | ||
"run": "./ci/build.sh", | ||
"env": { "KRB5_VER": "heimdal" }, | ||
}, | ||
], | ||
}, | ||
}, | ||
} | ||
- name: Build and test gssapi | ||
run: ./ci/run-on-linux.sh ./ci/build.sh | ||
env: | ||
DISTRO: ${{ matrix.distro }} | ||
KRB5_VER: ${{ matrix.krb5_ver }} | ||
FLAKE: ${{ matrix.flake }} | ||
|
||
windows: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: | ||
- win-py-3.10 | ||
- win-py-3.9 | ||
- win-py-3.8 | ||
- win-py-3.7 | ||
- win-py-3.6 | ||
arch: | ||
- x64 | ||
- x86 | ||
include: | ||
- name: win-py-3.10 | ||
pyenv: '3.10' | ||
- name: win-py-3.9 | ||
pyenv: '3.9' | ||
- name: win-py-3.8 | ||
pyenv: '3.8' | ||
- name: win-py-3.7 | ||
pyenv: '3.7' | ||
- name: win-py-3.6 | ||
pyenv: '3.6' | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install the right python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.pyenv }} | ||
architecture: ${{ matrix.arch }} | ||
|
||
- name: Build and test gssapi | ||
shell: bash | ||
run: ./ci/build.sh | ||
env: | ||
OS_NAME: windows | ||
|
||
macos-heimdal: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and test gssapi | ||
run: ./ci/build.sh | ||
env: | ||
KRB5_VER: heimdal |
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 |
---|---|---|
@@ -1,30 +1,24 @@ | ||
{ | ||
"name": "Deploy docs", | ||
"on": { "push": { "branches": "main" }}, | ||
"jobs": { | ||
"update-pages": { | ||
"runs-on": "ubuntu-latest", | ||
"steps": [ | ||
{ | ||
"name": "Check out code", | ||
"uses": "actions/checkout@v2", | ||
}, | ||
{ | ||
"name": "Build docs", | ||
"env": { "DISTRO": "fedora:latest" }, | ||
"run": "./ci/run-on-linux.sh ./ci/before-docs-deploy.sh", | ||
}, | ||
{ | ||
"name": "Deploy latest docs", | ||
"uses": "JamesIves/github-pages-deploy-action@3.7.1", | ||
"with": { | ||
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}", | ||
"BRANCH": "gh-pages", | ||
"FOLDER": "ci_docs_build/html", | ||
"TARGET_FOLDER": "latest", | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
} | ||
name: Deploy docs | ||
on: | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
update-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build docs | ||
run: ./ci/run-on-linux.sh ./ci/before-docs-deploy.sh | ||
env: | ||
DISTRO: fedora:latest | ||
|
||
- name: Deploy latest docs | ||
uses: JamesIves/github-pages-deploy-action@3.7.1 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: ci_docs_build/html | ||
TARGET_FOLDER: latest |
Oops, something went wrong.