Skip to content

KiCAD client packaging #63

KiCAD client packaging

KiCAD client packaging #63

Workflow file for this run

---
# This is a workflow to generate the zip file and metadata.json for KiCAD PCM
# https://gitlab.com/kicad/addons/metadata/-/merge_requests/14
name: KiCAD client packaging
on: # yamllint disable-line rule:truthy
release:
branches: main
types:
- published
workflow_dispatch:
jobs:
create_archive:
runs-on: windows-latest
steps:
- name: Get latest tag
uses: oprypin/find-latest-tag@v1
with:
repository: liangtie/kicad-win-builder
releases-only: true
id: latest-release
- name: Checkout repo
uses: actions/checkout@v3
- name: Configure
run: ./build.ps1 -Config -UseMsvcCmake $False
- name: Checkout any required tools
run: ./build.ps1 -Init
- name: Checkout any required tools, setup build environment variables
run: ./build.ps1 -Env -Arch x64
- name: Rebuilds vcpkg dependencies
run: ./build.ps1 -Vcpkg -Latest -Arch x64
- name: Cache packages downloaded
uses: actions/cache@v3
with:
key: package_downloaed
restore-keys: package_downloaed
path: |
.build
.downloads
.support
# - name: install wxPython
# run: pip install -r ./requirements.txt
- name: Triggers a build
run: ./build.ps1 -Build -Latest -Arch x64 -BuildType Release
- name: Cache vcpkg
uses: actions/cache@v3
with:
key: vcpkg_cache
restore-keys: vcpkg_cache
path: |
vcpkg
msys64
msys32
- name: Triggers a package operation
run: ./build.ps1 -PreparePackage -Arch x64 -BuildType Release
- name: Triggers a package operation Nsis
run: ./build.ps1 -Package -PackType Nsis -Arch x64 -BuildType Release
- name: Upload installer as asset to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./.out/kicad-huaqiu-8.0.5-x86_64.exe
asset_name: hq-kicad-${{ steps.latest-release.outputs.tag }}-x86_64.exe
overwrite: true
tag: ${{ steps.latest-release.outputs.tag }}