Toolkit: provide mechanism to auto-install build deps when building on azl #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT License. | |
# This action checks that the licenses.json file is up-to-date | |
# and that the LICENSES-MAP.md file is up-to-date | |
name: Prerequisites Check | |
on: | |
push: | |
branches: [main, dev, 1.0*, 2.0*, 3.0*, fasttrack/*] | |
pull_request: | |
branches: [main, dev, 1.0*, 2.0*, 3.0*, fasttrack/*] | |
jobs: | |
check: | |
name: Prerequisites Check | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the branch of our repo that triggered this action | |
- name: Workflow trigger checkout | |
uses: actions/checkout@v4 | |
- name: Run prerequisites checking script for Ubuntu | |
run: | | |
if [ ! -f ./toolkit/docs/building/prerequisites-src.json ]; then | |
echo "prerequisites-src.json not found" | |
exit 0 | |
fi | |
./toolkit/scripts/prerequisites.sh \ | |
-m ./toolkit/docs/building/prerequisites-ubuntu.md \ | |
-s ./toolkit/docs/building/prerequisites-src.json \ | |
-d "ubuntu" | |
- name: Run prerequisites checking script for AzureLinux | |
run: | | |
if [ ! -f ./toolkit/docs/building/prerequisites-src.json ]; then | |
echo "prerequisites-src.json not found" | |
exit 0 | |
fi | |
./toolkit/scripts/prerequisites.sh \ | |
-m ./toolkit/docs/building/prerequisites-mariner.md \ | |
-s ./toolkit/docs/building/prerequisites-src.json \ | |
-d "azurelinux" |