From c70f20b6a978244b4ec6cc3b7bec3086881adbec Mon Sep 17 00:00:00 2001 From: Johnathon Selstad Date: Wed, 16 Nov 2022 13:38:17 -0800 Subject: [PATCH] Test building in Github Actions --- .github/workflows/main.yml | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d7b54ac --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,67 @@ +name: Build libsm64 + +on: + push: + branches: [master] + +jobs: + Build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install SDL2 and GLEW + if: runner.os == 'Linux' + run: | + sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" + sudo apt-get update -y -qq + sudo apt-get install libsdl2-dev libglew-dev + + - name: Print Folder Structure + if: runner.os == 'Linux' + run: ls -l + + - name: Linux - Build Base Binary + if: runner.os == 'Linux' + run: make + + - name: Print Folder Structure + if: runner.os == 'Linux' + run: | + ls -l + ls -l ./build + ls -l ./dist + + #- name: Linux - Upload Build + # uses: actions/upload-artifact@v3 + # if: runner.os == 'Linux' + # with: + # name: sort_cuda + # path: | + # ./dist/libsm64.h + # ./dist/libsm64.so + + #Release: + # name: "Snapshot Release" + # runs-on: "ubuntu-latest" + # needs: Build + + # steps: + # - name: Download artifacts + # uses: actions/download-artifact@v3 + + # - name: Create a Release + # uses: "marvinpinto/action-automatic-releases@latest" + # with: + # repo_token: "${{ secrets.GITHUB_TOKEN }}" + # automatic_release_tag: "latest" + # prerelease: true + # title: "Snapshot Build" + # files: | + # /home/runner/work/sort_cuda/sort_cuda/sort_std + # /home/runner/work/sort_cuda/sort_cuda/sort_cuda