Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jun 2, 2024
1 parent 517318d commit e8c8b7c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ RUN cd /tmp && \
CAPSTONE_ARCHS=arm ./make.sh install && \
rm -r capstone*

RUN nproc

ENV NRFX_PATH /opt/nrfx
ENV NRF5_SDK_PATH /opt/nRF5_SDK_15.3.0_59ac345
ENV ARM_TOOLCHAIN_PATH /opt/arm-gnu-toolchain
45 changes: 45 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: main
on: [push]
jobs:
build-appimage:
runs-on: ubuntu:22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: apt-get update && apt-get install -y wget gcc g++ make pkg-config libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libopengl-dev libglx-dev libglu1-mesa-dev freeglut3-dev libxxf86vm-dev

# - name: Install Go
# run: |
# wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
# tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz

- name: Install capstone
run: |
cd /tmp
wget -q -O capstone.tar.gz https://github.com/capstone-engine/capstone/archive/5.0.1.tar.gz
tar xf capstone.tar.gz
rm capstone.tar.gz
cd capstone*
CAPSTONE_ARCHS=arm ./make.sh install
- name: Build libinfiniemu
run: make -j$(nproc) libinfiniemu.o

- name: Build raw-viewer
run: |
cd tools/raw-viewer
/usr/local/go/bin/go build .
- name: Build AppImage
run: |
wget -q -O appimagetool.AppImage https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
cd tools/raw-viewer
mkdir -p AppDir/usr/bin AppDir/usr/lib
cp raw-viewer AppDir/usr/bin
cp /usr/lib/libcapstone.so.5 AppDir/usr/lib
- uses: actions/upload-artifact@v4
with:
name: InfiniEmu AppImage
path: InfiniEmu-x86_64.AppImage
if-no-files-found: error

0 comments on commit e8c8b7c

Please sign in to comment.