mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-06-24 16:21:12 +08:00
Update workflow
This commit is contained in:
parent
c2df863e5d
commit
30304f1668
@ -1,25 +1,24 @@
|
|||||||
# Copyright 2025 Arthur Sonzogni. All rights reserved.
|
# Copyright 2025 Arthur Sonzogni. All rights reserved.
|
||||||
# Use of this source code is governed by the MIT license that can be found in
|
# Use of this source code is governed by the MIT license that can be found in
|
||||||
# the LICENSE file.
|
# the LICENSE file.
|
||||||
bcr_test_module:
|
matrix:
|
||||||
module_path: "."
|
platform:
|
||||||
matrix:
|
- centos7
|
||||||
platform: [
|
- debian10
|
||||||
"debian11",
|
- ubuntu2004
|
||||||
"macos",
|
- macos
|
||||||
"macos-arm64",
|
- windows
|
||||||
"ubuntu2204",
|
bazel: [6.x, 7.x, 8.x]
|
||||||
"windows",
|
tasks:
|
||||||
]
|
verify_targets:
|
||||||
bazel: [
|
name: Build and test.
|
||||||
6.x,
|
platform: ${{ platform }}
|
||||||
7.x,
|
bazel: ${{ bazel }}
|
||||||
8.x,
|
build_targets:
|
||||||
]
|
- '@ftxui//:ftxui'
|
||||||
tasks:
|
- '@ftxui//:screen'
|
||||||
run_tests:
|
- '@ftxui//:dom'
|
||||||
name: "Run test module"
|
- '@ftxui//:component'
|
||||||
platform: ${{ platform }}
|
test_targets:
|
||||||
bazel: ${{ bazel }}
|
- '@ftxui//:tests'
|
||||||
test_targets:
|
|
||||||
- "//..."
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"integrity": "",
|
"integrity": "",
|
||||||
"strip_prefix": "{REPO}-{VERSION}",
|
"strip_prefix": "",
|
||||||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
|
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/source.tar.gz",
|
||||||
}
|
}
|
||||||
|
29
.github/workflows/build.yaml
vendored
29
.github/workflows/build.yaml
vendored
@ -12,7 +12,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test_bazel:
|
test_bazel:
|
||||||
name: "Test Bazel"
|
name: "${{ matrix.os }}/Bazel/${{ matrix.compiler }}"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
run: bazel run tests
|
run: bazel run tests
|
||||||
|
|
||||||
test_cmake:
|
test_cmake:
|
||||||
name: "Tests CMake"
|
name: "${{ matrix.os }}/CMake/${{ matrix.compiler }}"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -173,7 +173,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Build artifact for the release
|
# Build artifact for the release
|
||||||
package:
|
package_compiled:
|
||||||
name: "Build packages"
|
name: "Build packages"
|
||||||
needs: release
|
needs: release
|
||||||
strategy:
|
strategy:
|
||||||
@ -218,6 +218,29 @@ jobs:
|
|||||||
asset_path: ${{ matrix.asset_path }}
|
asset_path: ${{ matrix.asset_path }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
|
# Build "source" artifact for the release. This is the same as the github
|
||||||
|
# "source" archive, but with a stable URL. This is useful for the Bazel
|
||||||
|
# Central Repository.
|
||||||
|
package_source:
|
||||||
|
name: "Build source package"
|
||||||
|
needs: release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Checkout repository"
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: "Create source package"
|
||||||
|
run: >
|
||||||
|
git archive --format=tar.gz --prefix=ftxui/ -o source.tar.gz HEAD
|
||||||
|
|
||||||
|
- name: "Upload source package"
|
||||||
|
uses: shogo82148/actions-upload-release-asset@v1
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||||
|
asset_path: source.tar.gz
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
|
|
||||||
documentation:
|
documentation:
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user