Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/release-tag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message": "xpro version 1.0.0 tag",
"tag": "xpv1.0.0"
}
28 changes: 28 additions & 0 deletions .github/workflows/xpbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: xpBuild
permissions:
contents: read
pull-requests: write
on:
push:
tags: ["xpv*"]
pull_request:
branches: ["xpro"]
workflow_dispatch:
jobs:
linux:
permissions:
contents: read
pull-requests: write
packages: write
uses: externpro/externpro/.github/workflows/build-linux.yml@25.07.18
secrets:
automation_token: ${{ secrets.GHCR_TOKEN }}
with: {}
macos:
uses: externpro/externpro/.github/workflows/build-macos.yml@25.07.18
secrets: inherit
with: {}
windows:
uses: externpro/externpro/.github/workflows/build-windows.yml@25.07.18
secrets: inherit
with: {}
44 changes: 44 additions & 0 deletions .github/workflows/xprelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: xpRelease
on:
workflow_dispatch:
inputs:
workflow_run_url:
description: 'URL of the workflow run containing artifacts to upload (e.g., https://github.com/owner/repo/actions/runs/123456789)'
required: true
type: string
workflow_run:
workflows: ["xpBuild"]
types: [completed]
jobs:
dispatch-at-tag:
if: >-
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
startsWith(github.event.workflow_run.head_branch, 'xpv')
runs-on: ubuntu-latest
permissions:
actions: write
steps:
-
name: Dispatch xpRelease at tag
shell: bash
env:
GH_TOKEN: ${{ github.token }}
RUN_URL: ${{ github.event.workflow_run.html_url }}
TAG_REF: ${{ github.event.workflow_run.head_branch }}
run: |
set -euo pipefail
gh api -X POST "repos/${{ github.repository }}/actions/workflows/xprelease.yml/dispatches" \
-f ref="$TAG_REF" \
-f inputs[workflow_run_url]="$RUN_URL"
# Upload build artifacts as release assets
release-from-build:
if: github.event_name == 'workflow_dispatch'
uses: externpro/externpro/.github/workflows/release-from-build.yml@25.07.18
with:
workflow_run_url: ${{ github.event.inputs.workflow_run_url }}
permissions:
contents: write
id-token: write
attestations: write
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/xptag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: xpTag
permissions:
contents: write
issues: write
on:
pull_request:
types: [closed]
jobs:
tag:
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'xpro' && contains(github.event.pull_request.labels.*.name, 'release:tag') }}
uses: externpro/externpro/.github/workflows/tag-release.yml@25.07.18
with:
merge_sha: ${{ github.event.pull_request.merge_commit_sha }}
pr_number: ${{ github.event.pull_request.number }}
secrets:
automation_token: ${{ secrets.XPRO_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/xpupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: xpUpdate externpro
permissions:
contents: write
pull-requests: write
packages: write
on:
workflow_dispatch:
jobs:
update:
uses: externpro/externpro/.github/workflows/update-externpro.yml@main
secrets:
automation_token: ${{ secrets.XPRO_TOKEN }}
with: {}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# externpro
.env
_bld*/
docker-compose.override.yml
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 4.3)
project(Threads)
string(JOIN "\n" EXT2
"set(THREAD_PREFER_PTHREAD_FLAG ON)"
"find_package(Threads REQUIRED BYPASS_PROVIDER)"
""
)
xpExternPackage(BASE v0 XPDIFF "bin"
WEB "https://cmake.org/cmake/help/latest/module/FindThreads.html"
DESC "Finds and determines the thread library of the system for multithreading support"
LICENSE "[LGPL-2.1-or-later](https://spdx.org/licenses/LGPL-2.1-or-later.html 'GNU Lesser General Public License v2.1 or later')"
)
9 changes: 9 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": 8,
"include": [
".devcontainer/cmake/presets/xpLinuxNinja.json",
".devcontainer/cmake/presets/xpDarwinNinja.json",
".devcontainer/cmake/presets/xpMswVs2022.json",
".devcontainer/cmake/presets/xpMswVs2026.json"
]
}
16 changes: 16 additions & 0 deletions CMakePresetsBase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": 8,
"configurePresets": [
{
"name": "config-base",
"hidden": true,
"binaryDir": "${sourceDir}/_bld-${presetName}"
}
],
"buildPresets": [
{
"name": "build-base",
"hidden": true
}
]
}
1 change: 1 addition & 0 deletions docker-compose.sh
1 change: 1 addition & 0 deletions docker-compose.yml