44 lines
1.2 KiB
YAML
Raw Normal View History

2024-04-26 09:10:23 +08:00
name: build
2024-04-26 08:43:34 +08:00
on:
push:
2024-04-26 09:11:57 +08:00
paths: [ '.github/workflows/build.yml','build.py', 'LunaTranslator/**' , 'plugins/**' ]
2024-04-26 08:43:34 +08:00
pull_request:
2024-04-26 09:11:57 +08:00
paths: [ '.github/workflows/build.yml','build.py', 'LunaTranslator/**' , 'plugins/**']
jobs:
build:
runs-on: windows-latest
2024-04-26 17:18:10 +08:00
strategy:
matrix:
include:
- architecture: x86
2024-04-26 19:24:31 +08:00
fname: LunaTranslator_x86
2024-04-26 17:18:10 +08:00
- architecture: x64
2024-04-26 19:24:31 +08:00
fname: LunaTranslator
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Windows 10 SDK
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
with:
sdk-version: 22621
2024-06-25 03:21:56 +08:00
- name: Install Python
uses: actions/setup-python@v5
with:
2024-06-25 03:21:56 +08:00
python-version: '3.8.10'
2024-04-26 17:18:10 +08:00
architecture: ${{ matrix.architecture }}
2024-05-01 17:40:57 +08:00
2024-05-01 22:45:59 +08:00
- name: Install Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run build script
run: |
2024-06-25 13:30:11 +08:00
python build.py ${{ matrix.architecture }} 3.8.10
2024-04-26 17:18:10 +08:00
- uses: actions/upload-artifact@v4
with:
2024-04-26 17:18:10 +08:00
name: ${{ matrix.fname }}
2024-04-26 19:24:31 +08:00
path: build/${{ matrix.fname }}.zip