-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
131 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# setup-cibuildwheel-cache | ||
An action to setup caching for [`cibuildwheel`](https://cibuildwheel.readthedocs.io/en/stable/) | ||
|
||
## Usage | ||
|
||
The following example yaml code will setup cibuildwheel caching. | ||
|
||
```yaml | ||
- name: Setup cibuildwheel caching | ||
uses: actions-ext/python/setup-cibuildwheel-cache@v1 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Setup cibuildwheel caching | ||
description: 'Setup cibuildwheel caching' | ||
|
||
inputs: | ||
version: | ||
type: choice | ||
description: 'Python Version to use' | ||
options: | ||
- '3.7' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.12' | ||
default: '3.9' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Display cibuildwheel cache dir | ||
id: cibuildwheel-cache | ||
run: | | ||
from platformdirs import user_cache_path | ||
import os | ||
with open(os.getenv('GITHUB_OUTPUT'), 'w') as f: | ||
f.write(f"dir={str(user_cache_path(appname='cibuildwheel', appauthor='pypa'))}") | ||
shell: python | ||
|
||
- name: Cache cibuildwheel tools | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.cibuildwheel-cache.outputs.dir }} | ||
key: ${{ runner.os }}-cibuildwheel-${{ inputs.version }} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# setup-cibuildwheel | ||
An action to install and configure caching for [`cibuildwheel`](https://cibuildwheel.readthedocs.io/en/stable/) | ||
|
||
## Usage | ||
|
||
The following example yaml code will install cibuildwheel and configure caching. | ||
|
||
```yaml | ||
- name: Setup cibuildwheel | ||
uses: actions-ext/python/setup-cibuildwheel@v1 | ||
with: | ||
version: '3.9' | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Setup cibuildwheel | ||
description: 'Ensure cibuildwheel is installed, and setup caching' | ||
|
||
inputs: | ||
version: | ||
type: choice | ||
description: "Python version" | ||
options: | ||
- '3.7' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
default: '3.9' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Setup cibuildwheel caching | ||
uses: actions-ext/python/setup-cibuildwheel-cache@v1 | ||
with: | ||
version: ${{ inputs.version }} | ||
|
||
- name: Install cibuildwheel | ||
run: pip install -U cibuildwheel | ||
shell: bash |
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