Update the CI actions

This commit is contained in:
pancake committed 2026-07-24 12:57:27 +02:00
1 parent 15e7964e2e
commit dc7e6f0704
2 files changed
+76 -113

No files matched your search

+58 -64
View File
@@ -1,86 +1,80 @@
# This is a basic workflow that is manually triggered
---
name: ci
on: push
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
# on:
# workflow_dispatch:
# # Inputs the workflow accepts.
# inputs:
# name:
# # Friendly description to be shown in the UI instead of 'name'
# description: 'Build and test'
# # Default value if no value is explicitly provided
# default: 'ACR'
# # Input has to be provided for the workflow to run
# required: true
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
name: Material
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: MaterialUI
run: cd www/m
- name: Building & Zipping
run: make -C www/m release
- name: Pub
uses: actions/upload-artifact@v2
with:
path: dist/*.zip
- name: Checkout repository
uses: actions/checkout@v7
- name: Build and zip
run: make -C www/m release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: material
path: dist/*.zip
if-no-files-found: error
tiled:
name: Tiled
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: TiledUI
run: cd www/t
- name: Installing dependencies
run: cd www/t && npm i
- name: Building
run: make -C www/t build
- name: Zipping
run: make -C www/t dist
- name: Pub
uses: actions/upload-artifact@v2
with:
path: dist/*.zip
- name: Checkout repository
uses: actions/checkout@v7
- name: Install dependencies
run: cd www/t && npm i
- name: Build
run: make -C www/t build
- name: Zip
run: make -C www/t dist
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: tiled
path: dist/*.zip
if-no-files-found: error
panels:
name: Panels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Panels
run: cd www/p
- name: Installing dependencies
run: cd www/p && npm i
- name: Building
run: make -C www/p
- name: Install
run: make -C www/p release
- name: Pub
uses: actions/upload-artifact@v2
with:
path: dist/*.zip
- name: Checkout repository
uses: actions/checkout@v7
- name: Install dependencies
run: cd www/p && npm i
- name: Build
run: make -C www/p
- name: Create release
run: make -C www/p release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: panels
path: dist/*.zip
if-no-files-found: error
enyo:
name: Enyo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: EnyoJS
run: cd www/enyo
- name: Installing dependencies
run: cd www/enyo && npm i
- name: Building & Install
run: make -C www/enyo build
- name: Zipping
run: make -C www/enyo dist
- name: Pub
uses: actions/upload-artifact@v2
with:
path: dist/*.zip
- name: Checkout repository
uses: actions/checkout@v7
- name: Install dependencies
run: cd www/enyo && npm i
- name: Build
run: make -C www/enyo build
- name: Zip
run: make -C www/enyo dist
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: enyo
path: dist/*.zip
if-no-files-found: error
+18 -49
View File
@@ -1,10 +1,10 @@
name: "CodeQL"
---
name: CodeQL
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 6 * * 1'
@@ -13,54 +13,23 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
packages: read
security-events: write
strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['javascript']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
language: [javascript]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4