mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2025-12-05 21:15:39 -05:00
Updated CI
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -1,5 +1,7 @@
|
|||||||
name: 🏗️ Project Build
|
name: Matrix Build
|
||||||
on: push
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
9
.github/workflows/dev-build.yml
vendored
Normal file
9
.github/workflows/dev-build.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
name: 'Development Build'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dev-build:
|
||||||
|
name: '🚧 Development Build'
|
||||||
|
uses: acidicoala/SmokeAPI/.github/workflows/build.yml@master
|
||||||
2
.github/workflows/kb-build.yml
vendored
2
.github/workflows/kb-build.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
CXX_COMPILER: ${{ inputs.os == 'Linux' && 'clang++' || 'cl' }}
|
CXX_COMPILER: ${{ inputs.os == 'Linux' && 'clang++' || 'cl' }}
|
||||||
OUTPUT_PATH: ${{ inputs.os == 'Linux' && '*.so' || 'Release/*.dll' }}
|
OUTPUT_PATH: ${{ inputs.os == 'Linux' && '*.so' || 'Release/*.dll' }}
|
||||||
WIN_FLAGS: ${{ inputs.os == 'Windows' && inputs.bitness == 32 && '-A=Win32' || '' }}
|
WIN_FLAGS: ${{ inputs.os == 'Windows' && inputs.bitness == 32 && '-A=Win32' || '' }}
|
||||||
LINUX_FLAGS: ${{ inputs.os == 'Linux' && inputs.bitness == 32 && '-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_EXE_LINKER_FLAGS=-m32' || '' }}
|
LINUX_FLAGS: ${{ inputs.os == 'Linux' && inputs.bitness == 32 && '-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32' || '' }}
|
||||||
steps:
|
steps:
|
||||||
# Fix dubious ownership errors in docker container
|
# Fix dubious ownership errors in docker container
|
||||||
- name: '✔️ Mark GitHub workspace as safe'
|
- name: '✔️ Mark GitHub workspace as safe'
|
||||||
|
|||||||
49
.github/workflows/kb-release.yml
vendored
Normal file
49
.github/workflows/kb-release.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
name: Create release
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
zip_command:
|
||||||
|
description: 'A shell command for creating a release zip'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
jobs:
|
||||||
|
package-project:
|
||||||
|
name: Package the artifacts into a release zip
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Setup version tag
|
||||||
|
run: echo "VERSION_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Setup zip name
|
||||||
|
env:
|
||||||
|
PROJECT_NAME: ${{ github.event.repository.name }}
|
||||||
|
run: echo "ZIP_NAME=$PROJECT_NAME-$VERSION_TAG.zip" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Install required tools
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install zip tree
|
||||||
|
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Download all workflow run artifacts
|
||||||
|
uses: actions/download-artifact@v5
|
||||||
|
with:
|
||||||
|
path: artifacts
|
||||||
|
|
||||||
|
- name: Print artifact tree
|
||||||
|
run: tree artifacts
|
||||||
|
|
||||||
|
# - name: Make release zip
|
||||||
|
# run: ${{ inputs.zip_command }}
|
||||||
|
|
||||||
|
# - name: 'Test upload'
|
||||||
|
# uses: actions/upload-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: release
|
||||||
|
# path: ${{ env.BUILD_DIR }}/${{ env.OUTPUT_PATH }}
|
||||||
18
.github/workflows/tag-release.yml
vendored
Normal file
18
.github/workflows/tag-release.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: 'Create Release'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-binaries:
|
||||||
|
name: '🏗️ Build Binaries'
|
||||||
|
uses: acidicoala/SmokeAPI/.github/workflows/build.yml@master
|
||||||
|
|
||||||
|
create-release:
|
||||||
|
name: '📦 Create Release'
|
||||||
|
uses: acidicoala/SmokeAPI/.github/workflows/kb-release.yml@master
|
||||||
|
needs: build-binaries
|
||||||
|
with:
|
||||||
|
zip_command: 'TODO'
|
||||||
Reference in New Issue
Block a user