Skip to content
Open
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
81 changes: 77 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "build"

on: # yamllint disable-line rule:truthy
Expand All @@ -7,7 +9,7 @@ on: # yamllint disable-line rule:truthy

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
cancel-in-progress: false

defaults:
run:
Expand All @@ -17,17 +19,87 @@ permissions:
contents: read

jobs:
check-docker-files:
name: Check for updated docker files
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.changed-files.outputs.any_changed }}

steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Get changed docker files
id: changed-files
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: docker/**

docker:
name: Build the container
runs-on: ubuntu-latest
needs: check-docker-files
if: ${{ needs.check-docker-files.outputs.changed == 'true' }}

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

permissions:
packages: write # Required to push image to ghcr.io

steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
flavor: latest=true
tags: |
type=ref,event=branch
type=sha
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
platforms: linux/amd64
context: docker
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

collect:
name: Collect DEVFAMILY and OS combinations
runs-on: ubuntu-latest
needs: docker
if: ${{ !failure() && !cancelled() }}
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
outputs:
build-matrix: "${{ steps.matrix.outputs.matrix }}"
steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand All @@ -43,13 +115,14 @@ jobs:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
needs: collect
if: ${{ !failure() && !cancelled() }}
strategy:
matrix:
include: "${{ fromJSON(needs.collect.outputs.build-matrix) }}"

steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand All @@ -65,7 +138,7 @@ jobs:
make VERSION=${GITHUB_REF_NAME}

- name: Upload artifact
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ matrix.device }}-${{ matrix.os }}
path: build/
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check-files.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "check-files"

on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -28,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand Down Expand Up @@ -70,8 +72,8 @@ jobs:
[ "$WARNING_COUNT" -eq "0" ]

- name: Save results
uses: actions/upload-artifact@v7
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() }}
with:
name: results
path: results/
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check_toc_txt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "check_toc_txt"

on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -29,7 +31,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand Down Expand Up @@ -71,8 +73,8 @@ jobs:
[ "$WARNING_COUNT" -eq "0" ]

- name: Save results
uses: actions/upload-artifact@v7
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() }}
with:
name: results
path: results/
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "comment"

on: # yamllint disable-line rule:truthy
Expand All @@ -21,15 +23,15 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v8
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: results
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
path: results

- name: Update pr with info from other runners
uses: actions/github-script@v9
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "commit-check"

on: [pull_request] # yamllint disable-line rule:truthy
Expand All @@ -17,13 +19,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

- name: Check commit
uses: commit-check/commit-check-action@v2
uses: commit-check/commit-check-action@bbb6580f01838e475563514f115ec7ef41c9ddc7 # v2.11.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/component-owners.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "component-owners"

# It's insecure to use pull_request_target if you intend to check out code
Expand All @@ -24,7 +26,7 @@ jobs:

steps:
- name: Assign component owners
uses: dyladan/component-owners@main
uses: dyladan/component-owners@7ff2b343629407c4dbe1c28ae66f55f723543d2b # v0.2.0
with:
config-file: .github/component-owners.yml
repo-token: ${{ github.token }}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "deploy"

on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -26,7 +28,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand All @@ -35,7 +37,7 @@ jobs:
git config --global --add safe.directory "$PWD"

- name: Download all artifacts
uses: actions/download-artifact@v8
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path: build
Expand All @@ -49,7 +51,7 @@ jobs:
run: ./bin/dedupe.py

- name: Upload static files as single artifact
uses: actions/upload-pages-artifact@v5
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: build

Expand All @@ -63,4 +65,4 @@ jobs:

steps:
- name: Update github page deployment
uses: actions/deploy-pages@v5
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
65 changes: 0 additions & 65 deletions .github/workflows/docker.yml

This file was deleted.

8 changes: 5 additions & 3 deletions .github/workflows/rstcheck.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# yamllint disable rule:line-length

name: "rstcheck"

on: # yamllint disable-line rule:truthy
Expand Down Expand Up @@ -28,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

Expand Down Expand Up @@ -70,8 +72,8 @@ jobs:
[ "$WARNING_COUNT" -eq "0" ]

- name: Save results
uses: actions/upload-artifact@v7
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: ${{ !cancelled() }}
with:
name: results
path: results/
Expand Down
Loading