Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/check-circular-deps.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

---
name: Circular dependency check

on:
Expand All @@ -16,7 +16,7 @@ permissions: read-all
jobs:
spec-check:
name: Circular dependency check
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest

steps:
# Checkout the branch of our repo that triggered this action
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Check for circular dependencies
run: |
echo "Checking for circular dependency loops..."
# Call this script to sync the toolchain manifests with the LKG daily build.
# This will sync the toolchain manifests with the LKG daily build.
#./toolkit/scripts/setuplkgtoolchain.sh
# Determine the LKG daily build ID.
#LKG_BUILD_ID=$(wget -qO - https://mariner3dailydevrepo.blob.core.windows.net/lkg/lkg-3.0-dev.json | jq -r ".dailybuildid" | tr '\.' '-')
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/check-entangled-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# This action checks that certain groups of specs have matching tags.
# The main use case is to ensure that signed specs have the same Version and
# Release tags as their unsigned counterparts
---
name: Spec Entanglement Mismatch Check

on:
Expand All @@ -22,8 +23,8 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
# For consistency, we use the same major/minor version of Python that Azure Linux ships

# We use the same major/minor version of Python that Azure Linux ships
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/check-license-map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# This action checks that the licenses.json file is up-to-date
# and that the LICENSES-MAP.md file is up-to-date
---
name: Spec License Map Check

on:
Expand All @@ -18,15 +19,15 @@ permissions: read-all
jobs:
check:
name: Spec License Map Check
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest

steps:
# Checkout the branch of our repo that triggered this action
- name: Workflow trigger checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/check-manifests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

---
name: Check Manifests

on:
Expand All @@ -17,28 +17,28 @@ permissions: read-all
jobs:
build:
name: Check Manifests
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4
with:
- name: Check out code
uses: actions/checkout@v4
with:
persist-credentials: false

# This PR runner uses an older Ubuntu with rpm version 4.17, which doesn't understand some newer macros like %bcond
- name: Define missing rpm macros
run: |
if [[ -n $(rpm --eval '%bcond test 1') ]]; then
echo '%bcond() %[ (%{2}) ? "%{expand:%%bcond_without %{1}}" : "%{expand:%%bcond_with %{1}}" ]' > ~/.rpmmacros
fi
# This PR runner uses an older Ubuntu with rpm version 4.17, which doesn't understand some newer macros like %bcond
- name: Define missing rpm macros
run: |
if [[ -n $(rpm --eval '%bcond test 1') ]]; then
echo '%bcond() %[ (%{2}) ? "%{expand:%%bcond_without %{1}}" : "%{expand:%%bcond_with %{1}}" ]' > ~/.rpmmacros
fi

- name: Check x86_64 manifests
run: |
echo ##########
echo "Ensure toolchain and pkggen manifests (./toolkit/resources/manifests/package/*) match the versions in the .spec files"
echo "Run './scripts/toolchain/check_manifests.sh -a \"x86_64\"' to validate locally"
echo ##########
pushd toolkit
./scripts/toolchain/check_manifests.sh -a "x86_64"
popd
shell: bash
- name: Check x86_64 manifests
run: |
echo ##########
echo "Ensure toolchain and pkggen manifests (./toolkit/resources/manifests/package/*) match the versions in the .spec files"
echo "Run './scripts/toolchain/check_manifests.sh -a \"x86_64\"' to validate locally"
echo ##########
pushd toolkit
./scripts/toolchain/check_manifests.sh -a "x86_64"
popd
shell: bash
80 changes: 40 additions & 40 deletions .github/workflows/check-package-cgmanifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

---
name: Check Package CGManifests

on:
Expand All @@ -20,44 +20,44 @@ jobs:
runs-on: [ubuntu-latest]

steps:
- name: Check out code
uses: actions/checkout@v4
with:
- name: Check out code
uses: actions/checkout@v4
with:
persist-credentials: false

# This PR runner uses an older Ubuntu with rpm version 4.17, which doesn't understand some newer macros like %bcond
- name: Define missing rpm macros
run: |
if [[ -n $(rpm --eval '%bcond test 1') ]]; then
echo '%bcond() %[ (%{2}) ? "%{expand:%%bcond_without %{1}}" : "%{expand:%%bcond_with %{1}}" ]' > ~/.rpmmacros
fi

- name: Get base commit for PRs
if: ${{ github.event_name == 'pull_request' }}
run: |
base_ref="${BASE_REF}"
git fetch origin $base_ref
echo "base_sha=$(git rev-parse origin/$base_ref)" >> "$GITHUB_ENV"
echo "Merging ${{ github.sha }} into $base_ref"
env:
BASE_REF: ${{ github.base_ref }}

- name: Get base commit for Pushes
if: ${{ github.event_name == 'push' }}
run: |
git fetch origin ${{ github.event.before }}
echo "base_sha=${{ github.event.before }}" >> "$GITHUB_ENV"
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"

- name: Get the changed files
run: |
echo "Files changed: '$(git diff-tree --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }})'"
changed_specs=$(git diff-tree --diff-filter=d --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }} | { grep "SPECS.*/.*\.spec$" || test $? = 1; } | awk '{printf "%s ", $0}')
echo "Files to validate: '${changed_specs}'"
echo "updated-specs=${changed_specs}" >> "$GITHUB_ENV"

- name: Check each spec
run: |
.github/workflows/overwrite_shell_link.sh
.github/workflows/validate-cg-manifest.sh ${{ env.updated-specs }}
shell: bash
# This PR runner uses an older Ubuntu with rpm version 4.17, which doesn't understand some newer macros like %bcond
- name: Define missing rpm macros
run: |
if [[ -n $(rpm --eval '%bcond test 1') ]]; then
echo '%bcond() %[ (%{2}) ? "%{expand:%%bcond_without %{1}}" : "%{expand:%%bcond_with %{1}}" ]' > ~/.rpmmacros
fi

- name: Get base commit for PRs
if: ${{ github.event_name == 'pull_request' }}
run: |
base_ref="${BASE_REF}"
git fetch origin $base_ref
echo "base_sha=$(git rev-parse origin/$base_ref)" >> "$GITHUB_ENV"
echo "Merging ${{ github.sha }} into $base_ref"
env:
BASE_REF: ${{ github.base_ref }}

- name: Get base commit for Pushes
if: ${{ github.event_name == 'push' }}
run: |
git fetch origin ${{ github.event.before }}
echo "base_sha=${{ github.event.before }}" >> "$GITHUB_ENV"
echo "Merging ${{ github.sha }} into ${{ github.event.before }}"

- name: Get the changed files
run: |
echo "Files changed: '$(git diff-tree --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }})'"
changed_specs=$(git diff-tree --diff-filter=d --no-commit-id --name-only -r ${{ env.base_sha }} ${{ github.sha }} | { grep "SPECS.*/.*\.spec$" || test $? = 1; } | awk '{printf "%s ", $0}')
echo "Files to validate: '${changed_specs}'"
echo "updated-specs=${changed_specs}" >> "$GITHUB_ENV"

- name: Check each spec
run: |
.github/workflows/overwrite_shell_link.sh
.github/workflows/validate-cg-manifest.sh ${{ env.updated-specs }}
shell: bash
4 changes: 2 additions & 2 deletions .github/workflows/check-source-signatures.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

---
name: Source Signature Check

on:
Expand All @@ -16,7 +16,7 @@ permissions: read-all
jobs:
spec-check:
name: Source Signature Check
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest
strategy:
matrix:
specs-dir: [SPECS, SPECS-EXTENDED]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-spec.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

---
name: Spec files check

on:
Expand All @@ -16,7 +16,7 @@ permissions: read-all
jobs:
spec-check:
name: Spec files check
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest

steps:
# Checkout the branch of our repo that triggered this action
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-static-glibc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

---
name: Static glibc version check

on:
Expand All @@ -16,7 +16,7 @@ permissions: read-all
jobs:
spec-check:
name: Static glibc version check
runs-on: [ ubuntu-latest ]
runs-on: ubuntu-latest

steps:
# Checkout the branch of our repo that triggered this action
Expand Down
Loading