Skip to content

Commit

Permalink
test package with Unreal
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 16, 2022
1 parent c3d8133 commit 371eab2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Download UPM package
- name: Download packages
uses: actions/download-artifact@v2
with:
name: ${{ github.sha }}
Expand All @@ -50,26 +50,25 @@ jobs:
# TODO: does it make sense to thest packages created by the build job instead?
test-ue-packaging:
runs-on: ubuntu-latest
needs: [build]

strategy:
matrix:
unreal: ['4.27', '5.0.2']
# Note: these versions must match scripts/packaging/engine-versions.txt
unreal: ['4.26', '4.27', '5.0']

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Free disk space
if: ${{ steps.exists.outputs.value == 0 }}
run: |
# time df -h
sudo time swapoff -a
sudo time rm -f /swapfile
sudo time rm -rf /usr/local/lib/android
# sudo time rm -rf /usr/local/lib/android
sudo time rm -rf /usr/share/dotnet
sudo time rm -rf /usr/share/swift
sudo time rm -rf /usr/local/.ghcup
sudo time rm -rf /usr/local/lib/node_modules
# sudo time rm -rf /usr/local/lib/node_modules
sudo time rm -rf /usr/lib/google-cloud-sdk
sudo time rm -rf /opt/pipx
sudo time rm -rf "$AGENT_TOOLSDIRECTORY"
Expand All @@ -79,24 +78,31 @@ jobs:
# time du --max-depth=3 --threshold=100M -h /usr /opt /var 2>/dev/null | sort -hr
df -h
- name: Run Docker container
- name: Start Docker container
run: |
echo ${{ secrets.DOCKER_TOKEN }} | docker login ghcr.io -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker run -td --name unreal --user root \
-v ${{ github.workspace }}/plugin-dev:/sentry-unreal \
-v ${{ github.workspace }}:/sentry-unreal \
--workdir /sentry-unreal \
ghcr.io/epicgames/unreal-engine:dev-slim-${{ matrix.unreal }}
- name: Installing Linux Dependencies
- name: Download packages
uses: actions/download-artifact@v2
with:
name: ${{ github.sha }}

- run: unzip sentry-unreal-*-engine${{ matrix.unreal }}.zip -d .

- name: Install Linux Dependencies
run: |
docker exec unreal sudo apt-get update
docker exec unreal pip3 install --upgrade pip
- name: Installing UE CLI
- name: Install UE CLI
run:
docker exec unreal pip3 install ue4cli

- name: Configuring UE CLI
- name: Configure UE CLI
run:
docker exec unreal ue4 setroot /home/ue4/UnrealEngine

Expand Down
6 changes: 3 additions & 3 deletions scripts/packaging/engine-versions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
5.0.0
4.27.0
4.26.0
5.0
4.27
4.26

0 comments on commit 371eab2

Please sign in to comment.