diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f758514c..f31b0aba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,10 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 1 + - name: Install Dependencies run: | sudo apt update @@ -24,7 +28,7 @@ jobs: cd ~/MultiMC mkdir build mkdir MultiMC - git clone --recursive --depth 1 https://github.com/Sebastian-byte/MultiMC5-Cracked.git src + git clone --recursive https://github.com/Sebastian-byte/MultiMC5-Cracked.git src - name: Build run: | @@ -62,12 +66,9 @@ jobs: - uses: actions/checkout@v2.3.4 with: fetch-depth: 1 - submodules: 'recursive' - - name: Create QtAccount File - run: | - mkdir C:/Users/runneradmin/AppData/Roaming/Qt/ - curl https://rickroll.is-inside.me/nPqUqs16.txt --output C:/Users/runneradmin/AppData/Roaming/Qt/qtaccount.ini + - name: Checkout Submodules + run: git submodule update --init - name: Cache Qt uses: actions/cache@v2.1.5 @@ -83,6 +84,12 @@ jobs: with: path: "installer.exe" key: ${{ runner.os }}-qt56-installer + + - name: Create QtAccount File + if: steps.qt-cached.outputs.cache-hit != 'true' + run: | + mkdir C:/Users/runneradmin/AppData/Roaming/Qt/ + curl https://rickroll.is-inside.me/nPqUqs16.txt --output C:/Users/runneradmin/AppData/Roaming/Qt/qtaccount.ini - name: Download Qt Installer if: steps.installer-cached.outputs.cache-hit != 'true' && steps.qt-cached.outputs.cache-hit != 'true'