-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (82 loc) · 2.48 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: check test
# on:
# push:
defaults:
run:
shell: bash
# jobs:
# # 全OSで実行lsしてwcで行数を数えるコードを叩いてみる
# check:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# steps:
# - name: Run ls
# run: ls
# - name: Run wc
# run: ls | wc -l
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
on:
push:
workflow_call:
inputs:
version:
type: string
required: true
repo_url:
type: string
required: false
workflow_dispatch:
inputs:
version:
type: string
description: "テストしたいタグ名"
required: true
repo_url:
type: string
description: "リポジトリのURL(省略可能)"
required: false
env:
REPO_URL: "https://github.com/VOICEVOX/voicevox_engine"
VERSION: "0.19.0"
# VERSION: "0.18.1"
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: macos-11
target: macos-x64
- os: macos-12
target: macos-x64
- os: macos-13
target: macos-x64
- os: macos-14
target: macos-x64
runs-on: ${{ matrix.os }}
steps:
- name: <Setup> Declare variables
id: vars
run: |
echo "release_url=${{ env.REPO_URL }}/releases/download/${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
echo "package_name=voicevox_engine-${{ matrix.target }}-${{ env.VERSION }}" >> "$GITHUB_OUTPUT"
- name: <Setup> Download ENGINE package
run: |
mkdir -p download
curl -L -o "download/list.txt" "${{ steps.vars.outputs.release_url }}/${{ steps.vars.outputs.package_name }}.7z.txt"
cat "download/list.txt" | xargs -I '%' curl -L -o "download/%" "${{ steps.vars.outputs.release_url }}/%"
7z x "download/$(head -n1 download/list.txt)"
mv "${{ matrix.target }}" dist/
- name: <Setup> Set up permission
if: startsWith(matrix.target, 'linux') || startsWith(matrix.target, 'macos')
run: chmod +x dist/run
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
# - name: <Setup> Install Python test dependencies
# run: |
# pip install -r requirements-test.txt
# - name: <Test> Test ENGINE package
# run: python build_util/check_release_build.py --dist_dir dist/