Kartong: GH actions 3. #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Windows | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download artifact from Traktor | |
uses: benday-inc/download-latest-artifact@main | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
repository_owner: apistol78 | |
repository_name: traktor | |
workflow_name: 'Build Windows' | |
branch_name: 'master' | |
artifact_name: 'traktor' | |
download_path: '${{ github.workspace }}/temp' | |
download_filename: 'traktor.zip' | |
- name: Extract Traktor | |
run: powershell Expand-Archive ${{ github.workspace }}/temp/traktor.zip -DestinationPath ${{ github.workspace }}/traktor | |
- name: Install Blender | |
uses: moguri/setup-blender@v1 | |
with: | |
blender-version: '4.0' | |
- name: Build | |
run: ./scripts/autobuild-win64.bat | |
- name: Install Scoop | |
run: powershell Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') | |
- name: Scoop - Add Extras | |
run: scoop bucket add extras | |
- name: Scoop - Install NSIS | |
run: scoop install nsis | |
- name: Print NSIS version | |
run: makensis -VERSION | |
- name: Installer | |
uses: joncloud/[email protected] | |
with: | |
script-file: ./scripts/installer.nsi | |
- name: Archive | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Installer | |
path: 'Kartong Setup.exe' |