From fc8bdd073f0203fe8caf329d2dbd97716f6c5fc5 Mon Sep 17 00:00:00 2001 From: Mikaël Capelle Date: Fri, 7 Jul 2023 18:22:01 +0200 Subject: Create test action to build. --- .github/workflows/basic-action.yml | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/basic-action.yml diff --git a/.github/workflows/basic-action.yml b/.github/workflows/basic-action.yml new file mode 100644 index 00000000..37feef0c --- /dev/null +++ b/.github/workflows/basic-action.yml @@ -0,0 +1,70 @@ +name: build modorganizer +on: [push] +jobs: + build: + runs-on: windows-2022 + steps: + - name: Checkout mob + uses: actions/checkout@master + with: + repository: modorganizer2/mob + path: ./mob + - name: Cache mob + id: cache-mob + uses: actions/cache@v3 + with: + path: | + ./mob/mob.exe + key: ${{ runner.OS }}-mob-cache-${{ hashFiles('mob/.git/refs/heads/master') }} + restore-keys: | + ${{ runner.OS }}-mob-cache- + - if: ${{ steps.cache-mob.outputs.cache-hit != 'true' }} + name: Build mob + run: .\mob\bootstrap.ps1 + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: 6.5.1 + modules: qtpositioning qtwebchannel qtwebengine qtwebsockets + cache: true + - name: Cache dependencies + id: cache-dependencies + uses: actions/cache@v3 + with: + # TODO: finer cache + path: | + ./install + ./build + key: ${{ runner.OS }}-mo2-dependencies-${{ hashFiles('mob/.git/refs/heads/master') }} + restore-keys: | + ${{ runner.OS }}-mo2-dependencies- + - if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }} + name: Build dependencies with mob + run: .\mob\mob.exe + -l 4 -d . + build + 7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 python lz4 spdlog + boost boost-di sip pyqt pybind11 ss licenses explorerpp usvfs + - name: Build dependencies log + uses: actions/upload-artifact@v3 + with: + name: build-dependencies-log + path: | + mob.log + # TODO: cache this? + - name: Build cmake_common and uibase + run: .\mob\mob.exe -l 4 -d . build + --ignore-uncommitted-changes + --redownload --reextract --reconfigure --rebuild + cmake_common uibase + # TODO: cache this? + - name: Build ModOrganizer dependencies + run: .\mob\mob.exe -l 4 -d . build + --ignore-uncommitted-changes + --redownload --reextract --reconfigure --rebuild + githubpp bsatk esptk archive lootcli game_gamebryo + - uses: actions/checkout@v3 + with: + path: ./build/modorganizer_super/modorganizer + - name: Build ModOrganizer + run: .\mob\mob.exe -l 5 -d . build --no-fetch-task --no-pull modorganizer -- cgit v1.3.1 From 6c0d1ccb5af72d1c37002e7c2913e286372d487d Mon Sep 17 00:00:00 2001 From: Mikaël Capelle Date: Sun, 9 Jul 2023 18:17:54 +0200 Subject: Fix build CI. --- .github/workflows/basic-action.yml | 70 -------------------------------------- .github/workflows/build.yml | 2 +- 2 files changed, 1 insertion(+), 71 deletions(-) delete mode 100644 .github/workflows/basic-action.yml diff --git a/.github/workflows/basic-action.yml b/.github/workflows/basic-action.yml deleted file mode 100644 index 37feef0c..00000000 --- a/.github/workflows/basic-action.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: build modorganizer -on: [push] -jobs: - build: - runs-on: windows-2022 - steps: - - name: Checkout mob - uses: actions/checkout@master - with: - repository: modorganizer2/mob - path: ./mob - - name: Cache mob - id: cache-mob - uses: actions/cache@v3 - with: - path: | - ./mob/mob.exe - key: ${{ runner.OS }}-mob-cache-${{ hashFiles('mob/.git/refs/heads/master') }} - restore-keys: | - ${{ runner.OS }}-mob-cache- - - if: ${{ steps.cache-mob.outputs.cache-hit != 'true' }} - name: Build mob - run: .\mob\bootstrap.ps1 - - name: Install Qt - uses: jurplel/install-qt-action@v3 - with: - version: 6.5.1 - modules: qtpositioning qtwebchannel qtwebengine qtwebsockets - cache: true - - name: Cache dependencies - id: cache-dependencies - uses: actions/cache@v3 - with: - # TODO: finer cache - path: | - ./install - ./build - key: ${{ runner.OS }}-mo2-dependencies-${{ hashFiles('mob/.git/refs/heads/master') }} - restore-keys: | - ${{ runner.OS }}-mo2-dependencies- - - if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }} - name: Build dependencies with mob - run: .\mob\mob.exe - -l 4 -d . - build - 7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 python lz4 spdlog - boost boost-di sip pyqt pybind11 ss licenses explorerpp usvfs - - name: Build dependencies log - uses: actions/upload-artifact@v3 - with: - name: build-dependencies-log - path: | - mob.log - # TODO: cache this? - - name: Build cmake_common and uibase - run: .\mob\mob.exe -l 4 -d . build - --ignore-uncommitted-changes - --redownload --reextract --reconfigure --rebuild - cmake_common uibase - # TODO: cache this? - - name: Build ModOrganizer dependencies - run: .\mob\mob.exe -l 4 -d . build - --ignore-uncommitted-changes - --redownload --reextract --reconfigure --rebuild - githubpp bsatk esptk archive lootcli game_gamebryo - - uses: actions/checkout@v3 - with: - path: ./build/modorganizer_super/modorganizer - - name: Build ModOrganizer - run: .\mob\mob.exe -l 5 -d . build --no-fetch-task --no-pull modorganizer diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e05d7c58..1fcaa364 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ on: push: branches: master pull_request: - types: [opened, reopened] + types: [opened, synchronize, reopened] jobs: build: runs-on: windows-2022 -- cgit v1.3.1