Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ci config #64

Merged
merged 4 commits into from
Jun 22, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-latest-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- v9.0.0

jobs:
build-amd-ubuntu24:
build-amd-ubuntu-latest:
runs-on: ubuntu-latest
container:
image: docker://ubuntu:latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu20-arrch64-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ on:
pull_request:
branches:
- v9.0.0
types:
- closed

jobs:
build-arm-ubuntu20:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu20-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ on:
pull_request:
branches:
- v9.0.0
types:
- closed


jobs:
build-amd-ubuntu20:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
container:
image: docker://ubuntu:20.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu22-arrch64-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ on:
pull_request:
branches:
- v9.0.0
types:
- closed

jobs:
build-arm-ubuntu22:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu22-v9.0.0-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ on:
pull_request:
branches:
- v9.0.0
types:
- closed

jobs:
build-amd-ubuntu22:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
container:
image: docker://ubuntu:22.04
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/ubuntu24-aarch64-v9.0.0-build.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| Ubuntu18.04 x86-64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-v9.0.0-build.yaml) |
| Ubuntu20.04 x86-64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-v9.0.0-build.yaml) |
| Ubuntu22.04 x86-64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu22-v9.0.0-build.yaml) |
| Ubuntu24.04 x86-64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu24-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu24-v9.0.0-build.yaml) |
| Ubuntu latest x86-64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu-latest-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu-latest-v9.0.0-build.yaml) |
| Ubuntu18.04 arrch64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-arrch64-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu18-arrch64-v9.0.0-build.yaml) |
| Ubuntu20.04 arrch64 | [![build v9.0.0](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-arrch64-v9.0.0-build.yaml/badge.svg?branch=v9.0.0)](https://github.com/minhanghuang/CyberRT/actions/workflows/ubuntu20-arrch64-v9.0.0-build.yaml) |
Expand Down Expand Up @@ -37,6 +38,7 @@ cd CyberRT

```shell
sudo python3 install.py
# sudo python3 install.py --platform <your-platform-machine> --install_prefix <your-install-path>
```

> export path
Expand Down
7 changes: 2 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import argparse
import time
import platform

class Install:

Expand Down Expand Up @@ -55,10 +56,6 @@ def _clone_github_repo(self, repo_url, repo_name, *args):
print("clone: {}".format(command))
subprocess.run(command, shell=True)

def _cmd(self, command):
print("[command] {}".format(command))
subprocess.run(command, shell=True)

def _clone_setup(self):
self._clone_github_repo(
"https://github.com/minhanghuang/setup.git",
Expand Down Expand Up @@ -209,7 +206,7 @@ def _clone_dds(self):

def parse_config():
parser = argparse.ArgumentParser(description="install")
parser.add_argument("--platform", type=str, default="x86_64", help="platform")
parser.add_argument("--platform", type=str, default=platform.machine(), help="platform")
parser.add_argument("--install_prefix", type=str, default="install", help="install prefix")
args = parser.parse_args()
return args
Expand Down
Loading