Skip to content

Commit

Permalink
temporary build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt2706 committed Apr 30, 2024
1 parent e6d2142 commit b151857
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 26 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 0 additions & 26 deletions .github/workflows/build.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b151857

Please sign in to comment.