Skip to content

Commit 703a3b4

Browse files
committed
CI: Update Erlang, Ubuntu, container
Changes: - Bump ubuntu-24.04 - Pull images from ECR instead of Docker Hub - Add Erlang/OTP 28 to the version matrix - Fix calls to apt - Fix cpp-coveralls installation
1 parent 83f676e commit 703a3b4

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
otp: ['19.3', '21.3', 24]
13-
runs-on: ubuntu-20.04
12+
otp: ['20', '25', '26', '27', '28']
13+
runs-on: ubuntu-24.04
1414
container:
15-
image: erlang:${{ matrix.otp }}
15+
image: public.ecr.aws/docker/library/erlang:${{ matrix.otp }}
1616
steps:
1717
- uses: actions/checkout@v2
1818
- run: ./configure
@@ -25,13 +25,15 @@ jobs:
2525
cover:
2626
name: Cover
2727
needs: [tests]
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-24.04
29+
container:
30+
image: public.ecr.aws/docker/library/erlang
2931
steps:
3032
- uses: actions/checkout@v2
3133
- name: Prepare libraries
3234
run: |
33-
sudo apt-get -qq update
34-
sudo apt-get -qq install libyaml-dev
35+
apt-get -qq update
36+
apt-get -qq install libyaml-dev
3537
- run: ./configure --enable-gcov
3638
- run: rebar3 compile
3739
- name: Run tests to obtain Erlang coverage
@@ -44,12 +46,13 @@ jobs:
4446
mv unload_test.erl test/
4547
rebar3 eunit -v
4648
mv eunit.coverdata _build/test/cover/
47-
- run: pip install --user cpp-coveralls
48-
- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4949
- name: Send to Coveralls
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
run: |
53+
apt-get -qq install pipx
54+
pipx install cpp-coveralls
55+
/github/home/.local/bin/cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
5356
ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
5457
curl -v -k https://coveralls.io/webhook \
5558
--header "Content-Type: application/json" \

.github/workflows/hexpm-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-24.04
11+
container:
12+
image: public.ecr.aws/docker/library/erlang
1113
steps:
1214
- name: Check out
1315
uses: actions/checkout@v2
1416

1517
- name: Prepare libraries
1618
run: |
17-
sudo apt-get -qq update
18-
sudo apt-get -qq install libyaml-dev
19+
apt-get -qq update
20+
apt-get -qq install libyaml-dev
1921
2022
- name: Setup rebar3 hex
2123
run: |

0 commit comments

Comments
 (0)