aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-11-14 15:38:36 +0100
committerLoïc Hoguin <[email protected]>2024-11-14 15:38:36 +0100
commitfe711b78ffc05980ff7f8e7d641877cab195c2bd (patch)
tree91f4dbe4255f6e3ef50b23995b78e6f23955f580
parente8aa6ab5d17e38e953161cc58228f113123e749c (diff)
downloaderlang.mk-fe711b78ffc05980ff7f8e7d641877cab195c2bd.tar.gz
erlang.mk-fe711b78ffc05980ff7f8e7d641877cab195c2bd.tar.bz2
erlang.mk-fe711b78ffc05980ff7f8e7d641877cab195c2bd.zip
CI: Add Erlang.mk packages testing
-rw-r--r--.github/workflows/ci.yaml57
1 files changed, 56 insertions, 1 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 195638b..77cd01c 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -98,7 +98,7 @@ jobs:
- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
shell: msys2 {0}
- run: PATH=$INSTALL_DIR_FOR_OTP/bin:$PATH make check c=${{ matrix.suite }} -k V=3 ${{ matrix.extra }}
+ run: PATH=$INSTALL_DIR_FOR_OTP/bin:$PATH make check c=${{ matrix.suite }} -k ${{ matrix.extra }}
- name: Upload artifacts
if: failure()
@@ -107,3 +107,58 @@ jobs:
name: ${{ matrix.os }} OTP-${{ matrix.erlang }} ${{ matrix.suite }} ${{ matrix.extra }}
path: |
test/test_*/
+
+ packages:
+ strategy:
+ fail-fast: false
+ matrix:
+ erlang:
+ - '27'
+ os:
+# - macos-latest
+ - ubuntu-latest
+# - windows-latest
+ extra: ['', 'LEGACY=1']
+ runs-on: ${{ matrix.os }}
+
+ steps:
+
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install Erlang/OTP
+ uses: erlef/setup-beam@v1
+ with:
+ otp-version: ${{ matrix.erlang }}
+ version-type: loose
+
+ - name: Setup MSYS2 (Windows)
+ if: matrix.os == 'windows-latest'
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: mingw64
+ release: false
+ update: true
+ install: >-
+ git
+ make
+ mingw-w64-x86_64-gcc
+ gnu-netcat
+ diffutils
+
+ - name: Run tests (Linux)
+ if: matrix.os == 'ubuntu-latest'
+ run: make packages -k ${{ matrix.extra }}
+
+ - name: Run tests (Windows)
+ if: matrix.os == 'windows-latest'
+ shell: msys2 {0}
+ run: PATH=$INSTALL_DIR_FOR_OTP/bin:$PATH make packages -k ${{ matrix.extra }}
+
+ - name: Upload artifacts
+ if: failure()
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ matrix.os }} OTP-${{ matrix.erlang }} packages ${{ matrix.extra }}
+ path: |
+ test/packages/