Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS wheels and simplify release process #267

Merged
merged 1 commit into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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