Skip to content

Commit 9aa74d7

Browse files
authored
add WIP Linux tools CI
1 parent 6a6ad77 commit 9aa74d7

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/linux-tools.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build and Release (Linux tools)
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python 3
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.x'
20+
21+
- name: Install required libs
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y g++ make build-essential cmake libarchive-dev python3 genisoimage
25+
26+
- name: Run configure
27+
run: ./configure
28+
29+
- name: Compile create_iso
30+
run: g++ -o create_iso common-tools/linux/create_iso/create_iso.cpp
31+
32+
- name: Compile extract_iso
33+
run: g++ -o extract_iso common-tools/linux/extract_iso/extract_iso.cpp -larchive
34+
35+
- name: Compile create_bin
36+
run: g++ -o create_bin common-tools/linux/create_bin/create_bin.cpp
37+
38+
- name: Compile create_tar
39+
run: g++ -o create_tar common-tools/linux/create_tar/create_tar.cpp
40+
41+
- name: Compile create_zip
42+
run: g++ -o create_zip common-tools/linux/create_tar/create_zip.cpp
43+
44+
- name: Upload Artifacts
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: compiled-linux-tools
48+
path: |
49+
create_iso
50+
extract_iso
51+
create_tar
52+
create_bin
53+
create_zip
54+

0 commit comments

Comments
 (0)