This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
linux action #1
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: linux action | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: environment init | |
run: | | |
apt-get update | |
apt-get install -y ca-certificates | |
apt-get install zip unzip wget ninja-build gcc g++ openjdk-8-jdk nasm python3 execstack | |
- name: get cmake | |
run: | | |
wget https://cmake.org/files/v3.28/cmake-3.28.0-linux-x86_64.tar.gz | |
tar -zxvf cmake-3.28.0-linux-x86_64.tar.gz | |
- name: build | |
run: | | |
/cmake-3.28.0-linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S . -B build-release | |
/cmake-3.28.0-linux-x86_64/bin/cmake --build build-release --target all | |
python3 main.py | |
zip -r build.zip target/* | |
- name: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifact | |
path: build.zip |