Skip to content

Commit

Permalink
fix CI.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmncs committed Jul 21, 2022
1 parent d6b12b6 commit 21f283f
Showing 1 changed file with 36 additions and 29 deletions.
65 changes: 36 additions & 29 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,30 @@ name: Main

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
linux:
strategy:
matrix:
python-version: [3.8, 3.9, 3.10]
python-version: ["3.8", "3.9", "3.10"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x86_64
- uses: actions/setup-python@v4
id: py3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Build wheel
uses: messense/maturin-action@v1
with:
target: x86_64
manylinux: auto
command: build
args: --release --sdist -o dist
args: --release --sdist -i python${{ matrix.python-version }} -o dist
- name: Install wheel
run: |
pip install hpke_spec --no-index --find-links dist --force-reinstall
Expand All @@ -39,15 +43,16 @@ jobs:
windows:
strategy:
matrix:
python-version: [3.8, 3.9, 3.10]
python-version: ["3.8", "3.9", "3.10"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x86
uses: actions/setup-python@v4
id: py3
with:
python-version: ${{ matrix.python-version }}
architecture: x86
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -58,7 +63,8 @@ jobs:
uses: messense/maturin-action@v1
with:
command: build
args: --release -o dist
target: x86
args: --release -i ${{ steps.py3.outputs.python-path }} -o dist
- name: Install wheel
run: |
pip install hpke_spec --no-index --find-links dist --force-reinstall
Expand All @@ -76,15 +82,16 @@ jobs:
macos:
strategy:
matrix:
python-version: [3.8, 3.9, 3.10]
python-version: ["3.8", "3.9", "3.10"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
uses: actions/setup-python@v4
id: py3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -96,7 +103,7 @@ jobs:
with:
command: build
target: x86_64
args: --release --out dist --sdist
args: --release -i ${{ steps.py3.outputs.python-path }} --out dist --sdist
- name: Install wheel - x86_64
run: |
pip install hpke_spec --no-index --find-links dist --force-reinstall
Expand All @@ -108,7 +115,7 @@ jobs:
- name: Build wheel - universal2
uses: messense/maturin-action@v1
with:
command: bulid
command: build
args: --release --universal2 -o dist
- name: Install wheel - universal2
run: |
Expand All @@ -120,16 +127,16 @@ jobs:
name: wheels
path: dist

update_release_draft:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# update_release_draft:
# permissions:
# contents: write
# runs-on: ubuntu-latest
# steps:
# - uses: release-drafter/release-drafter@v5
# with:
# disable-autolabeler: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# release:
# name: Release
Expand Down

0 comments on commit 21f283f

Please sign in to comment.