add common-code submodule #177
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release (Linux tools) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install required libs | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y g++ make build-essential cmake libarchive-dev python3 genisoimage | |
| - name: Run configure | |
| run: ./configure | |
| - name: Compile Linux tools | |
| run: | | |
| g++ -o create_iso common-tools/linux/create_iso/create_iso.cpp | |
| g++ -o extract_iso common-tools/linux/extract_iso/extract_iso.cpp -larchive | |
| g++ -o convert_bin common-tools/nowin/convert_bin/convert_bin.cpp | |
| g++ -o create_tar common-tools/nowin/create_tar/create_tar.cpp | |
| g++ -o create_zip common-tools/nowin/create_zip/create_zip.cpp | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: common-linux | |
| path: | | |
| create_iso | |
| extract_iso | |
| create_tar | |
| create_bin | |
| create_zip | |