Install actionlint (GitHub Action workflow linter) (#1408)

This commit is contained in:
Bart Louwers
2023-07-24 14:17:44 +02:00
committed by GitHub
parent 2ebca20d21
commit 5901eb6577
8 changed files with 10 additions and 85 deletions

View File

@@ -209,7 +209,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
if: secrets.AWS_ACCESS_KEY_ID && secrets.AWS_SECRET_ACCESS_KEY
if: github.repository_owner == 'maplibre'
steps:
- uses: actions/download-artifact@v3
with:

View File

@@ -117,8 +117,8 @@ jobs:
run: |
RELEASE_NOTES_PATH="${PWD}/release_notes.txt"
./scripts/release-notes.js > ${RELEASE_NOTES_PATH}
echo ::set-output name=release_notes::${RELEASE_NOTES_PATH}
echo ::set-output name=version_tag::$( git describe --tags --match=android-v*.*.* --abbrev=0 )
echo release_notes=${RELEASE_NOTES_PATH} >> "$GITHUB_OUTPUT"
echo version_tag=$( git describe --tags --match=android-v*.*.* --abbrev=0 ) >> "$GITHUB_OUTPUT"
shell: bash
- name: Create release

View File

@@ -22,49 +22,12 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Install macos dependencies
run: |
brew list cmake || brew install cmake
brew list ccache || brew install ccache
brew list pkg-config || brew install pkg-config
brew list glfw3 || brew install glfw3
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: /user/local/lib/node_modules
key: ${{ runner.macos }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.macos }}-build-${{ env.cache-name }}-
${{ runner.macos }}-build-
${{ runner.macos }}-
- name: npm install
run: npm install --ignore-scripts
- name: Prepare ccache
run: ccache --clear
- name: Cache ccache
uses: actions/cache@v3
env:
cache-name: ccache-v1
with:
path: ~/.ccache'
key: ${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}-${{ github.head_ref }}
restore-keys: |
${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}
${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}-${{ github.ref }}
${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}
- name: Clear ccache statistics
run: |
ccache --zero-stats
ccache --max-size=2G
ccache --show-stats
- name: Build docs
run: make idocument

View File

@@ -6,7 +6,7 @@ on:
jobs:
build:
#runs-on: macos-12
runs-on: [self-hosted, petr]
runs-on: [self-hosted]
env:
BUILDTYPE: Release
HOMEBREW_NO_AUTO_UPDATE: 1

View File

@@ -9,7 +9,7 @@ on:
jobs:
ios-render-test:
runs-on: ubuntu-22.04
if: secrets.MAPLIBRE_NATIVE_BOT_APP_ID
if: github.repository_owner == 'maplibre'
steps:
- uses: actions/checkout@v3

View File

@@ -71,25 +71,6 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Install macos dependencies
run: |
brew list cmake || brew install cmake
brew list ccache || brew install ccache
brew list pkg-config || brew install pkg-config
brew list glfw || brew install glfw
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: /user/local/lib/node_modules
key: ${{ runner.macos }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.macos }}-build-${{ env.cache-name }}-
${{ runner.macos }}-build-
${{ runner.macos }}-
- uses: actions/setup-node@v3
with:
node-version: 18
@@ -97,27 +78,6 @@ jobs:
- name: npm install
run: npm ci --ignore-scripts
- name: Prepare ccache
run: ccache --clear
- name: Cache ccache
uses: actions/cache@v3
env:
cache-name: ccache-v1
with:
path: ~/.ccache'
key: ${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}-${{ github.head_ref }}
restore-keys: |
${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}-${{ github.ref }}-${{ github.sha }}
${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}-${{ github.ref }}
${{ env.cache-name }}-${{ runner.macos }}-${{ github.job }}
- name: Clear ccache statistics
run: |
ccache --zero-stats
ccache --max-size=2G
ccache --show-stats
- name: Run macOS Objective-C tests
run: |
../macos/scripts/run-in-macos-gui-env.sh "make macos-test"

View File

@@ -73,8 +73,6 @@ jobs:
include:
- runs-on: macos-12
arch: x86_64
- runs-on: macos-12-arm
arch: arm64
continue-on-error: true
env:
BUILDTYPE: 'Release'

View File

@@ -13,6 +13,10 @@ repos:
rev: 6.1.0.2
hooks:
- id: buildifier
- repo: https://github.com/rhysd/actionlint
rev: v1.6.25
hooks:
- id: actionlint
ci:
# sometimes fails https://github.com/keith/pre-commit-buildifier/issues/13
skip: [buildifier]
skip: [buildifier]