mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: David Heidelberg <david@ixit.cz> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17562>
39 lines
803 B
YAML
39 lines
803 B
YAML
name: CI
|
|
on: push
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
CI:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Install Dependencies
|
|
run: |
|
|
cat > Brewfile <<EOL
|
|
brew "bison"
|
|
brew "expat"
|
|
brew "gettext"
|
|
brew "libx11"
|
|
brew "libxcb"
|
|
brew "libxdamage"
|
|
brew "libxext"
|
|
brew "meson"
|
|
brew "pkg-config"
|
|
brew "python@3.10"
|
|
EOL
|
|
|
|
brew update
|
|
brew bundle --verbose
|
|
- name: Install Mako
|
|
run: pip3 install --user mako
|
|
- name: Configure
|
|
run: meson . build -Dbuild-tests=true
|
|
- name: Build
|
|
run: meson compile -C build
|
|
- name: Test
|
|
run: meson test -C build
|
|
- name: Install
|
|
run: meson install -C build
|