From e2f27ba1c05b79ffe27b6433de8be875aabd6cd1 Mon Sep 17 00:00:00 2001 From: Joe Anderson Date: Fri, 5 Apr 2024 09:21:31 +0100 Subject: [PATCH] WIP 17 --- .github/workflows/build.yml | 43 +++++++++++++++++------------------ .github/workflows/windows.yml | 2 ++ 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a896f3f..478d5a77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,33 +29,32 @@ jobs: steps: - uses: actions/checkout@v4 - # - name: Install vendor - # run: | - # curl ${{ secrets.VENDOR_URL }} -o vendor.zip - # yarn vendor:unpack - # rm vendor.zip - - # # - uses: actions/cache@v3 - # # with: - # # path: Library - # # key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} - # # restore-keys: | - # # Library- - - # - uses: game-ci/unity-builder@v4 - # env: - # UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - # UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} - # UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + - name: Install vendor + run: | + curl ${{ secrets.VENDOR_URL }} -o vendor.zip + yarn vendor:unpack + rm vendor.zip + + # - uses: actions/cache@v3 # with: - # targetPlatform: ${{ inputs.target_platform }} - # customParameters: ${{ inputs.custom_parameters }} + # path: Library + # key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} + # restore-keys: | + # Library- + + - uses: game-ci/unity-builder@v4 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + with: + targetPlatform: ${{ inputs.target_platform }} + customParameters: ${{ inputs.custom_parameters }} - uses: actions/upload-artifact@v4 with: name: Build-${{ inputs.target_platform }} - # path: build/${{ inputs.target_platform }} - path: Assets/test + path: build/${{ inputs.target_platform }} - id: output_artifact_name run: echo "artifact_name=Build-${{ inputs.target_platform }}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 885ee9c2..fa1b9128 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -21,5 +21,7 @@ jobs: name: ${{ needs.build.outputs.artifact_name }} run-id: ${{ needs.build.outputs.run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} + path: public - run: dir + - run: dir public