Skip to content

Bump actions/upload-artifact from 4.3.3 to 4.3.4 #477

Bump actions/upload-artifact from 4.3.3 to 4.3.4

Bump actions/upload-artifact from 4.3.3 to 4.3.4 #477

Workflow file for this run

name: Package Installers
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
package-installers:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: macOS
generator: Xcode
os: macos-12
package: TGZ
- name: Linux
apt_install: cmake
generator: Unix Makefiles
os: ubuntu-22.04
package: TGZ
- name: Windows
generator: Visual Studio 17 2022
os: windows-2022
package: ZIP
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install Dependencies (Linux)
if: matrix.apt_install != ''
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.apt_install }}
- name: Create Build Environment
shell: bash
run: cmake -E make_directory ${{ github.workspace }}/build
- name: CMake Configure
shell: bash
run: |
cmake -S "${{ github.workspace }}" \
-B "${{ github.workspace }}/build" \
-G "${{ matrix.generator }}" \
-D CMAKE_BUILD_TYPE=Release
- name: Package
id: create-package
shell: bash
run: |
cd "${{ github.workspace }}/build"; \
cpack -G "${{ matrix.package }}" -C Release | \
tee out.txt
value="$(sed -n 's/CPack: - package: \(.*\) generated.$/\1/p' out.txt)"
echo "INSTALL_FILE=$value" | tee -a "$GITHUB_OUTPUT"
echo "INSTALL_BASENAME=$(basename $value)" | tee -a "$GITHUB_OUTPUT"
echo "### Created installer: $value" >> "$GITHUB_STEP_SUMMARY"
- name: Upload
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: ${{ steps.create-package.outputs.INSTALL_BASENAME }}
path: ${{ steps.create-package.outputs.INSTALL_FILE }}