Skip to content

github/buildrepo: allow node16 #71

github/buildrepo: allow node16

github/buildrepo: allow node16 #71

Workflow file for this run

name: Build repository from PRs
on:
pull_request:
branches: [ "master"]
concurrency:
group: ${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
BASE_REPO_URL: https://bboozzoo.github.io/snapd-amazon-linux
jobs:
build-repo:
strategy:
fail-fast: false
matrix:
target: ["amazonlinux:2", "amazonlinux:2023"]
include:
- target: amazonlinux:2
repo_tarball_name: amazon-linux-2-repo.tar.xz
artifact_name: repo-tarball-amazonlinux-2
repo_url_suffix: amzn2
- target: amazonlinux:2023
repo_tarball_name: amazon-linux-2023-repo.tar.xz
artifact_name: repo-tarball-amazonlinux-2023
repo_url_suffix: al2023
runs-on: ubuntu-latest
container: ${{ matrix.target }}
env:
# the steps are executed inside the container, in case of AMZN2, node20
# build provided by github requires newer glibc than present in the
# container, so we must use a workaround, see:
# https://github.com/actions/checkout/issues/1809
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.target == 'amazonlinux:2' && 'true' || '' }}
steps:
- name: Install git
run: |
yum install git -y
- name: Checkout code
uses: actions/checkout@v3
- name: Build repository artifacts
id: build-repo
uses: "./.github/actions/build-repo"
with:
target: ${{ matrix.target }}
repo_tarball_name: ${{ matrix.repo_tarball_name }}
repo_artifact_name: ${{ matrix.artifact_name }}
repo_url: ${{ env.BASE_REPO_URL }}/${{ matrix.repo_url_suffix }}