Skip to content

Commit

Permalink
Set up CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Dec 13, 2023
1 parent 41ce204 commit 1b79d21
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 8 deletions.
File renamed without changes.
Empty file removed .github/workflows/Mac.yml
Empty file.
41 changes: 41 additions & 0 deletions .github/workflows/Testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Testing

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
windows-testing:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Install swig
run: |
choco install python --version=3.8.0
choco install --yes swig
- name: Build
run: make all
- name: Run Tests
run: |
make all ;
python -c "from pwnlib.tubes import process; process.send()"
- name: Clean
run: make clean

ubuntu-testing:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install swig
run: |
sudo apt install --yes swig
- name: Build
run: echo "hello world"
43 changes: 43 additions & 0 deletions .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Testing

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
windows-testing:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Install swig
run: |
choco install python # --version=3.8.0
choco install --yes swig
- name: Build
run: |
python --version
make all
- name: Run Tests
run: |
make all ;
python -c "from pwnlib.tubes import process; process.send()"
- name: Clean
run: make clean

ubuntu-testing:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install swig
run: |
sudo apt install --yes swig
- name: Build
run: echo "hello world"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ all:
$(MAKE) -C pwnlib

clean:
$(MAKE) -C pwnlib clean
$(MAKE) -C pwnlib clean
39 changes: 33 additions & 6 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,48 @@ As the dev have some experience with the old pwntools, the new tool aims to fix
- windows program and drivers support. More than pwntools.
- Linux driver support (more than pwn++ that is written in C++ instead of C).

# I.1 Build
# I Build

# I.1 Install dependencies
# I.1 Install building dependencies

```shell
choco install --yes doxygen.install
choco install --yes doxygen.portable
```
choco install --yes swig
```

# I.2 Build really
# I.2 Build/Clean project

build with

```shell
make all
```
clean with

```shell
make clean
```

# II Contributing

# Install dev dependencies

```shell
choco install --yes doxygen.install
choco install --yes doxygen.portable
choco install --yes swig
```

# II.1 Bindings with swig

Each set of .h/.c of file you create MUST be followed by another .i file with the same name containing swig binding definition.

It will then autogenerate binding so that our c program with c perf and c syntax will be available by importation in most of the languages including python.

Watch the swig doc for more informations.

# II.2 Documentating with doxygen

# II.3 Testing with integrated doxygen doctest

# alternatives:

Expand Down
2 changes: 1 addition & 1 deletion pwnlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ all:
$(MAKE) -C tubes

clean:
$(MAKE) -C tubes clean
$(MAKE) -C tubes clean

0 comments on commit 1b79d21

Please sign in to comment.