From 4774a4f7a7d4ab7e26e3a4644dd9318c8db76f5f Mon Sep 17 00:00:00 2001 From: Wolfgang Bremer Date: Wed, 15 Nov 2023 17:50:47 +0100 Subject: [PATCH] ci: enable test builds for UE 4.27, 5.2 After testing that the goldenmaster is actually correct, we use docker container to build the software against different UE versions. --- .github/workflows/ci_generate.yml | 69 +++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci_generate.yml b/.github/workflows/ci_generate.yml index d0509614b..d85a1cd12 100644 --- a/.github/workflows/ci_generate.yml +++ b/.github/workflows/ci_generate.yml @@ -10,34 +10,59 @@ on: - '!docs/**' env: - GITHUB_AUTH_TOKEN: ${{ secrets.WOLFGANG_REPO_PACKAGE_READ }} GOPRIVATE: "github.com/apigear-io/*" GH_ACCESS_TOKEN: ${{ secrets.APIGEAR_REPOS }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} go_version: "1.19.x" jobs: - generate: - runs-on: ubuntu-latest + # generate: + # runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - uses: actions/setup-go@v3 - with: - go-version: ${{env.go_version}} + # steps: + # - uses: actions/checkout@v3 + # with: + # submodules: recursive + # - uses: actions/setup-go@v3 + # with: + # go-version: ${{env.go_version}} + + # - uses: actions/cache@v3 + # with: + # path: | + # ~/go/pkg/mod + # ~/.cache/go-build + # key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} + # restore-keys: ${{ runner.os }}-go-${{ matrix.go-version }}- - - uses: actions/cache@v3 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go-${{ matrix.go-version }}- + # - run: go run main.go install + # - run: go run main.go diff + # - name: Install clang-format-12 + # run: sudo apt-get install --no-install-recommends -y clang-format-12 && sudo mv /usr/bin/clang-format-12 /usr/bin/clang-format + # - run: go run main.go testStyle - - run: go run main.go install - - run: go run main.go diff - - name: Install clang-format-12 - run: sudo apt-get install --no-install-recommends -y clang-format-12 && sudo mv /usr/bin/clang-format-12 /usr/bin/clang-format - - run: go run main.go testStyle + test-compile: + runs-on: ubuntu-latest + # needs: generate + strategy: + matrix: + UE_VERSION: + - dev-slim-4.27 + - dev-slim-5.2.1 + container: + image: ghcr.io/epicgames/unreal-engine:${{ matrix.UE_VERSION }} + credentials: + username: ${{ github.actor }} + password: ${{ secrets.WOLFGANG_READ_PACKAGES }} + volumes: + - ${{ github.workspace }}:/project + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: test + run: | + pwd + ls -la + - name: build plugins + run: | + sh buildPlugins.sh \ No newline at end of file