This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Bump step-security/harden-runner from 2.6.1 to 2.10.2 (#7) #25
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: C CI | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: Build ${{ matrix.build_type }} on ubuntu-latest | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
build_type: [release] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
submodules: recursive | |
- uses: libsdl-org/setup-sdl@0b4058be1a69a43f9875e9a17f41e636495f5852 # main | |
id: sdl | |
with: | |
install-linux-dependencies: true | |
build-type: Release | |
version: 3-latest | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14 | |
with: | |
create-symlink: true | |
key: ${{ matrix.build_type }} | |
# - name: configure | |
# run: ./configure | |
# - name: make ${{ matrix.build_type }} | |
# run: make ${{ matrix.build_type }} | |
# - name: make check | |
# run: make check | |
# - name: make distcheck | |
# run: make distcheck | |
- name: Build ${{ matrix.build_type }} | |
run: TERM=xterm ./build.sh ${{ matrix.build_type }} |