Skip to content

Commit

Permalink
Convert GitHub actions to YAML, adjust release
Browse files Browse the repository at this point in the history
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
jborean93 committed Oct 6, 2021
1 parent 7443358 commit 48715d9
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 355 deletions.
14 changes: 7 additions & 7 deletions .github/stale.yml
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
222 changes: 90 additions & 132 deletions .github/workflows/build.yml
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
54 changes: 24 additions & 30 deletions .github/workflows/deploy-docs.yml
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
Loading

0 comments on commit 48715d9

Please sign in to comment.