Build gaster #12
This file contains 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 gaster | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: "0 0 * * 0" | |
workflow_dispatch: | |
jobs: | |
build-libusb-linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y aria2 libusb-1.0-0-dev clang lld | |
sudo apt remove -y libssl-dev libusb-1.0-0-dev | |
aria2c https://www.openssl.org/source/openssl-1.1.1q.tar.gz | |
tar -zxvf openssl-1.1.1q.tar.gz | |
cd openssl-1.1.1q | |
./Configure no-ssl3-method enable-ec_nistp_64_gcc_128 linux-x86_64 "-Wa,--noexecstack -fPIC" | |
make depend -j4 | |
make -j4 | |
sudo make install_sw install_ssldirs | |
sudo rm -rf /usr/local/lib/libcrypto.so* /usr/local/lib/libssl.so* | |
cd .. | |
aria2c https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2 | |
tar -xf libusb-1.0.26.tar.bz2 | |
cd libusb-1.0.26 | |
./configure --disable-shared --enable-static --disable-udev LDFLAGS="-static" | |
make -j$(nproc) | |
sudo make install | |
cd .. | |
- name: run make | |
run: make libusb -j$(nproc) LDFLAGS="-L/usr/local/lib -fuse-ld=lld" CC=clang LIBS="-ldl -lusb-1.0 -pthread -lcrypto" | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: gaster-Linux | |
path: gaster | |
if-no-files-found: warn | |
retention-days: 90 | |
build-macOS: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: make macos -j$(sysctl -n hw.ncpu) | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: gaster-Darwin | |
path: gaster | |
if-no-files-found: warn | |
retention-days: 90 | |
build-ios: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: make ios -j$(sysctl -n hw.ncpu) | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: gaster-iOS | |
path: gaster | |
if-no-files-found: warn | |
retention-days: 99 |