mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f4513702b0 | ||
![]() |
ba6716c6e1 |
27
.github/workflows/publish.yaml
vendored
27
.github/workflows/publish.yaml
vendored
@@ -1,22 +1,37 @@
|
|||||||
name: "Publish to Bazel Central Registry"
|
name: "Publish to Bazel Central Registry"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# On manual trigger:
|
# Manual kick-off (you type the tag)
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag_name:
|
tag_name:
|
||||||
|
description: "Tag to publish"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
# Fire as soon as the Release workflow completes
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- Release
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
|
||||||
|
attestations: write
|
||||||
|
contents: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4
|
uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v0.0.4
|
||||||
|
# Only run on manual dispatch, or when Release finishes successfully
|
||||||
|
if: |
|
||||||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ inputs.tag_name }}
|
tag_name: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag_name || github.event.workflow_run.head_branch }}
|
||||||
registry_fork: ArthurSonzogni/bazel-central-registry
|
registry_fork: ArthurSonzogni/bazel-central-registry
|
||||||
permissions:
|
|
||||||
attestations: write
|
|
||||||
contents: write
|
|
||||||
id-token: write
|
|
||||||
secrets:
|
secrets:
|
||||||
publish_token: ${{ secrets.PUBLISH_TOKEN }}
|
publish_token: ${{ secrets.PUBLISH_TOKEN }}
|
||||||
|
28
.github/workflows/release.yaml
vendored
28
.github/workflows/release.yaml
vendored
@@ -13,6 +13,8 @@ permissions:
|
|||||||
# Needed to mint attestations
|
# Needed to mint attestations
|
||||||
id-token: write
|
id-token: write
|
||||||
attestations: write
|
attestations: write
|
||||||
|
# Needed to upload release assets
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -90,17 +92,6 @@ jobs:
|
|||||||
run: >
|
run: >
|
||||||
git archive --format=tar.gz -o source.tar.gz HEAD
|
git archive --format=tar.gz -o source.tar.gz HEAD
|
||||||
|
|
||||||
- name: Generate source attestation
|
|
||||||
id: attest_source
|
|
||||||
uses: actions/attest-build-provenance@v2
|
|
||||||
with:
|
|
||||||
subject-path: source.tar.gz
|
|
||||||
|
|
||||||
- name: Write source.intoto.jsonl
|
|
||||||
run:
|
|
||||||
jq --compact-output < "${{ steps.attest_source.outputs.bundle-path }}" \
|
|
||||||
> source.tar.gz.intoto.jsonl
|
|
||||||
|
|
||||||
- name: "Upload source package"
|
- name: "Upload source package"
|
||||||
uses: shogo82148/actions-upload-release-asset@v1
|
uses: shogo82148/actions-upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
@@ -108,9 +99,14 @@ jobs:
|
|||||||
asset_path: source.tar.gz
|
asset_path: source.tar.gz
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: "Upload source attestation"
|
- name: Generate source attestation
|
||||||
uses: shogo82148/actions-upload-release-asset@v1
|
id: attest_source
|
||||||
|
uses: actions/attest-build-provenance@v2
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
subject-path: source.tar.gz
|
||||||
asset_path: source.tar.gz.intoto.jsonl
|
|
||||||
overwrite: true
|
- name: "Upload source attestation"
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: source.tar.gz.intoto.jsonl
|
||||||
|
path: ${{ steps.attest_source.outputs.bundle-path }}
|
||||||
|
@@ -4,7 +4,7 @@ Changelog
|
|||||||
Future release
|
Future release
|
||||||
------------
|
------------
|
||||||
|
|
||||||
6.1.4 (2025-05-01)
|
6.1.6 (2025-05-01)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
@@ -15,7 +15,7 @@ Future release
|
|||||||
|
|
||||||
**MODULE.bazel**
|
**MODULE.bazel**
|
||||||
```bazel
|
```bazel
|
||||||
bazel_dep(name = "ftxui", version = "6.1.4")
|
bazel_dep(name = "ftxui", version = "6.1.6")
|
||||||
```
|
```
|
||||||
|
|
||||||
**BUILD.bazel**
|
**BUILD.bazel**
|
||||||
|
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12)
|
|||||||
|
|
||||||
project(ftxui
|
project(ftxui
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
VERSION 6.1.4
|
VERSION 6.1.6
|
||||||
DESCRIPTION "C++ Functional Terminal User Interface."
|
DESCRIPTION "C++ Functional Terminal User Interface."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
# the LICENSE file.
|
# the LICENSE file.
|
||||||
|
|
||||||
# FTXUI Module.
|
# FTXUI Module.
|
||||||
module(name = "ftxui", version = "6.1.4")
|
module(name = "ftxui", version = "6.1.6")
|
||||||
|
|
||||||
# Build deps.
|
# Build deps.
|
||||||
bazel_dep(name = "rules_cc", version = "0.1.1")
|
bazel_dep(name = "rules_cc", version = "0.1.1")
|
||||||
|
@@ -372,7 +372,7 @@ include(FetchContent)
|
|||||||
|
|
||||||
FetchContent_Declare(ftxui
|
FetchContent_Declare(ftxui
|
||||||
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
|
GIT_REPOSITORY https://github.com/ArthurSonzogni/ftxui
|
||||||
GIT_TAG v6.1.4
|
GIT_TAG v6.1.6
|
||||||
)
|
)
|
||||||
|
|
||||||
FetchContent_GetProperties(ftxui)
|
FetchContent_GetProperties(ftxui)
|
||||||
|
Reference in New Issue
Block a user