Skip to content

Commit

Permalink
Fix release workflows (build-libraries.yaml/build-linux-artifacts.yaml)
Browse files Browse the repository at this point in the history
Revert 85ca4ce for the mentioned files.

Signed-off-by: Davide Bettio <davide@uninstall.it>
  • Loading branch information
bettio committed Jul 20, 2024
1 parent 3c96e75 commit 81923c4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ permissions:

jobs:
build-libraries:
runs-on: "ubuntu-24.04"
container: erlang:27
runs-on: "ubuntu-22.04"
strategy:
fail-fast: false

Expand All @@ -27,6 +26,11 @@ jobs:
with:
submodules: 'recursive'

- uses: erlef/setup-beam@v1
with:
otp-version: "24"
elixir-version: "1.11"

- name: "APT update"
run: sudo apt update -y

Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/build-linux-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,38 @@ on:
permissions:
contents: write

env:
otp_version: 24
elixir_version: 1.14

jobs:
compile_tests:
runs-on: ubuntu-24.04
container: erlang:27
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.otp_version }}
elixir-version: ${{ env.elixir_version }}

- name: apt update
run: sudo apt update

- name: Install required packages
run: sudo apt install -y cmake gperf zlib1g-dev ninja-build
run: sudo apt install -y gperf

- name: Compile test modules
run: |
set -e
mkdir build_tests
cd build_tests
cmake .. -G Ninja -DAVM_WARNINGS_ARE_ERRORS=ON
ninja erlang_test_modules test_estdlib test_eavmlib test_alisp
cmake ..
make erlang_test_modules
make test_estdlib
make test_eavmlib
make test_alisp
- name: Upload test modules
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 81923c4

Please sign in to comment.