summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2022-10-04 14:27:05 +0200
committerLukas Larsson <lukas@erlang.org>2022-10-05 08:43:53 +0200
commit284d32462ce75cdee5d09371c1d05f0929098423 (patch)
tree6fa13350bb059f3f7dbe35a13b9d2a4a5327331e /.github/workflows
parent2d9123254e507cc598716ddd02c573e042892cd9 (diff)
downloaderlang-284d32462ce75cdee5d09371c1d05f0929098423.tar.gz
gh: Add test for compiling all flavors and types
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 8a0e9b8a25..5c3d028b14 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -270,6 +270,45 @@ jobs:
name: otp_win32_installer
path: otp/release/win32/otp*.exe
+ build-flavors:
+ name: Build Erlang/OTP (Types and Flavors)
+ runs-on: ubuntu-latest
+ needs: [pack, changed-apps]
+ if: contains(needs.changed-apps.outputs.changes, 'emulator')
+
+ steps:
+ - uses: actions/checkout@v2
+ ## Download docker images
+ - name: Cache BASE image
+ id: cache-base-image
+ uses: actions/cache@v3
+ with:
+ path: otp_docker_base.tar
+ key: ${{ runner.os }}-${{ hashFiles('.github/dockerfiles/Dockerfile.ubuntu-base', '.github/scripts/build-base-image.sh') }}
+ - name: Download otp build
+ uses: actions/download-artifact@v2
+ with:
+ name: otp-ubuntu-20.04
+ - name: Docker login
+ uses: docker/login-action@v1
+ with:
+ registry: docker.pkg.github.com
+ username: ${{ github.repository_owner }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Restore docker image
+ run: .github/scripts/restore-otp-image.sh
+ - name: Build Erlang/OTP flavors and types
+ run: |
+ TYPES="opt debug lcnt"
+ FLAVORS="emu jit"
+ for TYPE in ${TYPES}; do
+ for FLAVOR in ${FLAVORS}; do
+ echo "::group::{TYPE=$TYPE FLAVOR=$FLAVOR}"
+ docker run otp "make TYPE=$TYPE FLAVOR=$FLAVOR"
+ echo "::endgroup::"
+ done
+ done
+
build:
name: Build Erlang/OTP
runs-on: ubuntu-latest