mirror of
https://github.com/apple/swift-asn1
synced 2026-11-27 04:44:20 +00:00
* Migrate to GitHub Actions reusable workflows (1) Motivation: Migrate to GitHub Actions reusable workflows whilst keeping CI green. Modifications: As the first step in migrating to use GitHub actions this PR provides the workflows which will be used in the future, at first in disabled state so that we can keep CI green during the changeover. Result: Once this PR is merged we can: * Enable the new CI * In a future PR neutralize the old CI scripts * Disable the old CI via GitHub * In a future PR Delete the old CI scripts * add scheduled GHA CI * Update .github/workflows/pull_request.yml Co-authored-by: Franz Busch <privat@franz-busch.de> * review comments --------- Co-authored-by: Franz Busch <privat@franz-busch.de>
29 lines
900 B
Bash
Executable File
29 lines
900 B
Bash
Executable File
#!/bin/bash
|
|
##===----------------------------------------------------------------------===##
|
|
##
|
|
## This source file is part of the SwiftASN1 open source project
|
|
##
|
|
## Copyright (c) 2023 Apple Inc. and the SwiftASN1 project authors
|
|
## Licensed under Apache License v2.0
|
|
##
|
|
## See LICENSE.txt for license information
|
|
## See CONTRIBUTORS.txt for the list of SwiftASN1 project authors
|
|
##
|
|
## SPDX-License-Identifier: Apache-2.0
|
|
##
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
target_repo=${2-"$here/.."}
|
|
|
|
for f in 57 58 59 510 -nightly; do
|
|
echo "swift$f"
|
|
|
|
docker_file=$(if [[ "$f" == "-nightly" ]]; then f=main; fi && ls "$target_repo/docker/docker-compose."*"$f"*".yaml")
|
|
|
|
docker-compose -f docker/docker-compose.yaml -f $docker_file run update-benchmark-baseline
|
|
done
|