summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 46655d45309ad328fbbe8d39fe535b1adff4e735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build ModOrganizer 2

on:
  push:
    branches: [master]
  pull_request:
    types: [opened, synchronize, reopened]

env:
  VCPKG_BINARY_SOURCES: ${{ vars.AZ_BLOB_VCPKG_URL != '' && format('clear;x-azblob,{0},{1},readwrite', vars.AZ_BLOB_VCPKG_URL, secrets.AZ_BLOB_SAS) || '' }}

jobs:
  build:
    runs-on: windows-2022
    steps:
      - name: Build ModOrganizer
        id: build-modorganizer
        uses: ModOrganizer2/build-with-mob-action@master
        with:
          qt-modules: qtpositioning qtwebchannel qtwebengine qtwebsockets qtnetworkauth
          mo2-dependencies: usvfs uibase bsatk esptk archive lootcli

      - name: Install ModOrganizer
        shell: pwsh
        run: |
          cmake --install vsbuild --config RelWithDebInfo
        working-directory: ./build/${{ github.event.repository.name }}

      - name: Package ModOrganizer
        uses: actions/upload-artifact@master
        with:
          name: modorganizer
          path: ./install/bin