diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml new file mode 100644 index 0000000..2635d2e --- /dev/null +++ b/.github/workflows/bazel.yml @@ -0,0 +1,26 @@ +# name: Bazel build + +# on: +# push: +# branches: [main] + +# jobs: +# build: +# runs-on: ubuntu-latest + +# steps: +# - name: Checkout code +# uses: actions/checkout@v2 + +# - name: Install Bazel +# run: | +# sudo apt update +# sudo apt install curl gnupg +# curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg +# sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ +# echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list +# sudo apt update +# sudo apt install bazel + +# - name: Build +# run: bazel build //:main diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 5081b02..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build - -on: - push: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Install Bazel - run: | - sudo apt update - sudo apt install curl gnupg - curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg - sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ - echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list - sudo apt update - sudo apt install bazel - - - name: Build - run: bazel build //:main diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml new file mode 100644 index 0000000..8d8b2d9 --- /dev/null +++ b/.github/workflows/gcc.yml @@ -0,0 +1,24 @@ +name: GCC build + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: sudo apt-get install -y libsdl2-dev + + - name: Build + run: gcc -o Chip8Interpreter src/*.c -lSDL2 + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: Chip8Interpreter + path: ./Chip8Interpreter