diff --git a/.github/workflows/compile-check.yml b/.github/workflows/compile-check.yml new file mode 100644 index 00000000..a8217375 --- /dev/null +++ b/.github/workflows/compile-check.yml @@ -0,0 +1,27 @@ +name: Compile and verify functions +on: [push, pull_request] + +jobs: + compile_verify: + runs-on: ubuntu-latest + steps: + - name: Set up dependencies + run: | + sudo apt install -y python3-pip ninja-build cmake ccache xdelta3 clang libssl-dev python-is-python3 curl + sudo pip3 install capstone colorama cxxfilt pyelftools ansiwrap watchdog python-Levenshtein toml + - name: Set up rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 + - name: Check out project + uses: actions/checkout@v3 + with: + submodules: 'true' + - name: Download main.nso from secret + env: + EXEFS_SHARED_PATH: ${{ secrets.EXEFS_SHARED_PASS }} + run: curl -u "github-odyssey:$EXEFS_SHARED_PASS" https://monsterdruide.one/secrets/smo-main.nso -O + - name: Run setup + run: tools/setup.py smo-main.nso + - name: Build project + run: tools/build.py + - name: Verify function states + run: tools/check