Install actionlint (GitHub Action workflow linter) (#1408)
This commit is contained in:
2
.github/workflows/android-ci.yml
vendored
2
.github/workflows/android-ci.yml
vendored
@@ -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:
|
||||
|
||||
4
.github/workflows/android-release.yml
vendored
4
.github/workflows/android-release.yml
vendored
@@ -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
|
||||
|
||||
37
.github/workflows/gh-pages-ios-api.yml
vendored
37
.github/workflows/gh-pages-ios-api.yml
vendored
@@ -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
|
||||
|
||||
|
||||
2
.github/workflows/ios-pre-release.yml
vendored
2
.github/workflows/ios-pre-release.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/ios-render-test.yml
vendored
2
.github/workflows/ios-render-test.yml
vendored
@@ -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
|
||||
|
||||
|
||||
40
.github/workflows/macos-ci.yml
vendored
40
.github/workflows/macos-ci.yml
vendored
@@ -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"
|
||||
|
||||
2
.github/workflows/node-ci-mac.yml
vendored
2
.github/workflows/node-ci-mac.yml
vendored
@@ -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'
|
||||
|
||||
@@ -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]
|
||||
Reference in New Issue
Block a user