Skip to content

Commit edab341

Browse files
committed
test
1 parent 703bddf commit edab341

File tree

5 files changed

+153
-21
lines changed

5 files changed

+153
-21
lines changed

.github/actions/setup-al/action.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
name: Setup Amazon Linux
4+
description: Setup Amazon Linux
5+
6+
inputs:
7+
packages:
8+
description: Space-separated list of additional packages to install
9+
required: false
10+
default: ''
11+
sudo:
12+
required: false
13+
default: 'sudo'
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- name: Install base packages
19+
- name: Update package repository
20+
shell: bash
21+
run: |
22+
${{ inputs.sudo }} yum install make git python3-venv -y
23+
${{ inputs.sudo }} pip3 install virtualenv
24+
- name: Install additional packages
25+
if: ${{ inputs.packages != ''}}
26+
shell: bash
27+
run: |
28+
${{ inputs.sudo }} yum install ${{ inputs.packages }} -y
29+
- name: Setup Python venv
30+
shell: bash
31+
run: |
32+
virtualenv venv
33+
source venv/bin/activate
34+
python3 -m pip install -r requirements.txt
35+
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH"

.github/actions/setup-os/action.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
name: Setup OS
4+
description: Setup OS
5+
6+
inputs:
7+
packages:
8+
description: Space-separated list of additional packages to install
9+
required: false
10+
default: ''
11+
sudo:
12+
required: false
13+
default: 'sudo'
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- name: Detect OS
19+
shell: bash
20+
run: |
21+
if (which yum 2>&1 > /dev/null); then
22+
echo PKG="yum" >> $GITHUB_ENV
23+
elif (which apt 2>&1 > /dev/null); then
24+
echo PKG="apt" >> $GITHUB_ENV
25+
fi
26+
- name: Setup via yum
27+
if: ${{ env.PKG == 'yum' }}
28+
uses: ./.github/actions/setup-ubuntu
29+
with:
30+
packages: ${{ inputs.packages }}
31+
sudo: ${{ inputs.sudo }}
32+
- name: Setup via apt
33+
if: ${{ env.PKG == 'apt' }}
34+
uses: ./.github/actions/setup-ubuntu
35+
with:
36+
packages: ${{ inputs.packages }}
37+
sudo: ${{ inputs.sudo }}

.github/actions/setup-os/action.yml~

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
name: Setup OS
4+
description: Setup OS
5+
6+
inputs:
7+
packages:
8+
description: Space-separated list of additional packages to install
9+
required: false
10+
default: ''
11+
sudo:
12+
required: false
13+
default: 'sudo'
14+
15+
runs:
16+
using: composite
17+
steps:
18+
- name: Update package repository
19+
shell: bash
20+
run: |
21+
${{ inputs.sudo }} apt-get update
22+
- name: Install base packages
23+
shell: bash
24+
run: |
25+
${{ inputs.sudo }} apt-get install python3-venv python3-pip make -y
26+
- name: Install additional packages
27+
if: ${{ inputs.packages != ''}}
28+
shell: bash
29+
run: |
30+
${{ inputs.sudo }} apt-get install ${{ inputs.packages }} -y
31+
- name: Setup Python venv
32+
shell: bash
33+
run: |
34+
python3 -m venv venv
35+
source venv/bin/activate
36+
python3 -m pip install -r requirements.txt
37+
deactivate
38+
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH"

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -439,25 +439,25 @@ jobs:
439439
fail-fast: false
440440
matrix:
441441
container:
442-
- id: ubuntu-22.04-aarch:gcc-12x
443-
- id: ubuntu-22.04-aarch:gcc-11x
444-
- id: ubuntu-20.04-aarch:gcc-8x
445-
- id: ubuntu-20.04-aarch:gcc-7x
446-
- id: ubuntu-20.04-aarch:clang-9x
447-
- id: ubuntu-20.04-aarch:clang-8x
448-
- id: ubuntu-20.04-aarch:clang-7x-bm-framework
449-
- id: ubuntu-20.04-aarch:clang-7x
450-
- id: ubuntu-20.04-aarch:clang-10x
451-
- id: ubuntu-22.04-aarch:base
442+
# - id: ubuntu-22.04-aarch:gcc-12x
443+
# - id: ubuntu-22.04-aarch:gcc-11x
444+
# - id: ubuntu-20.04-aarch:gcc-8x
445+
# - id: ubuntu-20.04-aarch:gcc-7x
446+
# - id: ubuntu-20.04-aarch:clang-9x
447+
# - id: ubuntu-20.04-aarch:clang-8x
448+
# - id: ubuntu-20.04-aarch:clang-7x-bm-framework
449+
# - id: ubuntu-20.04-aarch:clang-7x
450+
# - id: ubuntu-20.04-aarch:clang-10x
451+
# - id: ubuntu-22.04-aarch:base
452452
- id: ubuntu-20.04-aarch:base
453453
- id: amazonlinux-2-aarch:base
454-
- id: amazonlinux-2-aarch:gcc-7x
455-
- id: amazonlinux-2-aarch:clang-7x
456-
- id: amazonlinux-2023-aarch:base
457-
- id: amazonlinux-2023-aarch:gcc-11x
458-
- id: amazonlinux-2023-aarch:clang-15x
459-
- id: amazonlinux-2023-aarch:clang-15x-sanitizer
460-
- id: amazonlinux-2023-aarch:cryptofuzz
454+
# - id: amazonlinux-2-aarch:gcc-7x
455+
# - id: amazonlinux-2-aarch:clang-7x
456+
# - id: amazonlinux-2023-aarch:base
457+
# - id: amazonlinux-2023-aarch:gcc-11x
458+
# - id: amazonlinux-2023-aarch:clang-15x
459+
# - id: amazonlinux-2023-aarch:clang-15x-sanitizer
460+
# - id: amazonlinux-2023-aarch:cryptofuzz
461461
name: Compatibility tests (${{ matrix.container.id }})
462462
# needs: [ec2_functests]
463463
permissions:

.github/workflows/ci_ec2_reusable.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,32 @@ jobs:
123123
container:
124124
localhost:5000/${{ inputs.container }}
125125
steps:
126-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
127-
- uses: ./.github/actions/setup-ubuntu
128-
with:
129-
sudo: ""
126+
- run: |
127+
if which yum; then
128+
yum install make git python3-venv -y
129+
sudo pip3 install virtualenv
130+
elif which apt; then
131+
apt install make git python3-venv python3-venv -y
132+
fi
133+
134+
git init
135+
git remote add origin $GITHUB_SERVER_URL/GITHUB_REPOSITORY
136+
git fetch origin --depth 1 $GITHUB_SHA
137+
git checkout FETCH_HEAD
138+
139+
if which yum; then
140+
virtualenv venv
141+
elif which apt; then
142+
python3 -m venv venv
143+
fi
144+
145+
source venv/bin/activate
146+
python3 -m pip install -r requirements.txt
147+
echo "$(pwd)/venv/bin/" >> "$GITHUB_PATH"
148+
# - uses: actions/checkout@v3
149+
# - uses: ./.github/actions/setup-os
150+
# with:
151+
# sudo: ""
130152
- name: make quickcheck
131153
run: |
132154
OPT=0 make quickcheck >/dev/null

0 commit comments

Comments
 (0)