diff --git a/.github/actions/build-assetbundle/Dockerfile b/.github/actions/build-assetbundle/Dockerfile new file mode 100644 index 0000000..a9465a0 --- /dev/null +++ b/.github/actions/build-assetbundle/Dockerfile @@ -0,0 +1 @@ +FROM unityci/editor:ubuntu-2019.4.18f1-windows-mono-3 \ No newline at end of file diff --git a/.github/actions/build-assetbundle/action.yml b/.github/actions/build-assetbundle/action.yml new file mode 100644 index 0000000..6beaaeb --- /dev/null +++ b/.github/actions/build-assetbundle/action.yml @@ -0,0 +1,7 @@ +name: Build Assetbundle +description: Build an assetbundle + +runs: + using: docker + image: Dockerfile + diff --git a/.github/actions/setup-unity/action.yml b/.github/actions/setup-unity/action.yml deleted file mode 100644 index c688de0..0000000 --- a/.github/actions/setup-unity/action.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Setup Unity -description: Installs the Unity Editor - -inputs: - editor-version: - description: > - CKAN tag to install. set to an empty string to always install the most recent version. - See https://github.com/KSP-CKAN/CKAN/tags for a list of available tags - default: '' - -runs: - using: composite - steps: - - name: Install Unity public key - shell: bash - run: >- - wget -qO - https://hub.unity3d.com/linux/keys/public - | gpg --dearmor - | sudo tee /usr/share/keyrings/Unity_Technologies_ApS.gpg > /dev/null - - - name: Install Unity apt package - shell: bash - run: | - sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list' - sudo apt update - - - name: Install Unity hub - uses: tecolicom/actions-use-apt-tools@v1 - with: - tools: 'unityhub' - - - name: Run Unity Hub - shell: bash - run: unityhub --headless help diff --git a/.github/workflows/internal-test-assetbundle.yml b/.github/workflows/internal-test-assetbundle.yml index cfaee71..e7603a6 100644 --- a/.github/workflows/internal-test-assetbundle.yml +++ b/.github/workflows/internal-test-assetbundle.yml @@ -13,4 +13,4 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: ./.github/actions/setup-unity \ No newline at end of file + - uses: ./.github/actions/build-assetbundle \ No newline at end of file