Skip to content

Bump actions/upload-artifact from 4.3.3 to 4.4.0 #149

Bump actions/upload-artifact from 4.3.3 to 4.4.0

Bump actions/upload-artifact from 4.3.3 to 4.4.0 #149

---
# jscpd:ignore-start
# #105 created to address duplication across workflows
name: create ccs_build container - dry run
on:
workflow_dispatch:
merge_group:
pull_request_target:
branches: ["dependabot/**"]
pull_request:
types: [opened, synchronize, edited]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: read-all
jobs:
build-ccs-base:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Docker Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Base Image
id: docker_build_base
uses: docker/[email protected]
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
target: install-ccs
build-cgt-images:
runs-on: ubuntu-latest
needs: build-ccs-base
permissions:
packages: write
contents: read
strategy:
fail-fast: false
matrix:
cgt-versions:
- prefix: 18.1.3
version-number: 18.1.3.LTS
installer-url: 18.1.3.LTS/ti_cgt_msp430_18.1.3.LTS_linux_installer_x86.bin
- prefix: 21.6.0
version-number: 21.6.0.LTS
installer-url: 21.6.0.LTS/ti_cgt_msp430_21.6.0.LTS_linux-x64_installer.bin
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Docker Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Images For Specific CGT Versions
id: docker_build_cgt_images
uses: docker/[email protected]
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
target: install-specific-cgt
build-args: |
MSP430_CGT_VERSION=${{ matrix.cgt-versions.version-number }}
MSP430_CGT_INSTALLER_URL=${{ matrix.cgt-versions.installer-url }}
# jscpd:ignore-end