Skip to content

Commit

Permalink
勝利宣言
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Nov 23, 2023
1 parent 73b949d commit f1998ac
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,48 @@
name: CI

on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
inputs:
version:
description: "バージョン情報(A.BB.C / A.BB.C-preview.D)"
required: true
release:
types:
- published

env:
VERSION: ${{ github.event.release.tag_name || inputs.version || '0.0.0'

permissions:
contents: read

jobs:
download:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-binstall
uses: taiki-e/install-action@cargo-binstall
- name: Install cargo-edit
run: cargo binstall cargo-edit@^0.11 --no-confirm --log-level debug
- name: set cargo version
run: |
cargo set-version "$VERSION" --exclude voicevox_core_python_api --exclude downloader --exclude xtask
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: projects
path: ./

linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: projects
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand All @@ -48,7 +70,9 @@ jobs:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: projects
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand All @@ -71,7 +95,9 @@ jobs:
matrix:
target: [x86_64]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: projects
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand All @@ -95,7 +121,9 @@ jobs:
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: projects
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand Down

0 comments on commit f1998ac

Please sign in to comment.