Skip to content

Update build_linux.yml #3

Update build_linux.yml

Update build_linux.yml #3

Workflow file for this run

name: Build Windows
on:
push:
# Manual run
workflow_dispatch:
jobs:
build_windows:
runs-on: windows-latest
defaults:
run:
working-directory: ./python3-windows
strategy:
matrix:
env:
- { ARCH: win32, PYVER: 3.7.9 }
- { ARCH: amd64, PYVER: 3.7.9 }
- { ARCH: win32, PYVER: 3.8.10 }
- { ARCH: amd64, PYVER: 3.8.10 }
- { ARCH: win32, PYVER: 3.9.13 }
- { ARCH: amd64, PYVER: 3.9.13 }
- { ARCH: win32, PYVER: 3.10.9 }
- { ARCH: amd64, PYVER: 3.10.9 }
- { ARCH: win32, PYVER: 3.11.2 }
- { ARCH: amd64, PYVER: 3.11.2 }
- { ARCH: win32, PYVER: 3.12.0 }
- { ARCH: amd64, PYVER: 3.12.0 }
steps:
- name: Checkout main repo
uses: actions/checkout@v2
- name: Build Python
shell: cmd
run: |
@echo off
:: Set env parameters
set ARCH=${{ matrix.env.ARCH }}
set PYVER=${{ matrix.env.PYVER }}
:: Run the build script
build.bat
- name: Create package
id: create_package
shell: cmd
run: |
cd ${{ matrix.env.ARCH }}\embeddable\
7z a -tzip python3-windows-${{ matrix.env.PYVER }}-${{ matrix.env.ARCH }}.zip * -r
- name: Save build
uses: actions/upload-artifact@v2
with:
path: python3-windows\${{ matrix.env.ARCH }}\embeddable\python3-windows-${{ matrix.env.PYVER }}-${{ matrix.env.ARCH }}.zip
if-no-files-found: error