1# This is a basic workflow that is manually triggered
2
3name: GUIX Studio Installer
4
5# Controls when the action will run.
6on:
7  workflow_dispatch:
8
9# A workflow run is made up of one or more jobs that can run sequentially or in parallel
10jobs:
11  # This workflow contains a single job called "linux_job"
12  generate_studio_installer:
13    permissions:
14      contents: read
15      issues: read
16      checks: write
17      pull-requests: write
18
19    # The type of runner that the job will run on
20    runs-on: windows-2019
21
22    # Steps represent a sequence of tasks that will be executed as part of the job
23    steps:
24    - name: Check out the repository
25      uses: actions/checkout@v4
26      with:
27        submodules: true
28
29    - name: Install Inno Setup
30      run: scripts\run-pwsh.cmd scripts\install_inno_setup.ps1
31
32    - name: Build GUIX Studio
33      run: scripts\build_guix_studio.cmd
34
35    - name: Download VC++ Redistributable
36      run: scripts\download_vc_redist.cmd
37
38    - name: Generate installer
39      run: scripts\generate_studio_installer.cmd
40
41    - name: Upload installer
42      uses: actions/upload-artifact@v3.1.3
43      with:
44        name: guix_studio_installer
45        path: guix_studio\installer\output\*.exe
46