diff --git a/readme.md b/.github/readme.md similarity index 65% rename from readme.md rename to .github/readme.md index 49a4b7aa7..f28467087 100644 --- a/readme.md +++ b/.github/readme.md @@ -3,8 +3,11 @@ # RPCSX *An experimental emulator for PS4 (PlayStation 4) for Linux written in C++* -![](https://img.shields.io/github/actions/workflow/status/RPCSX/rpcsx/format.yml?style=for-the-badge&label=Formatting) -[![](https://img.shields.io/discord/252023769500090368?style=for-the-badge)](https://discord.gg/t6dzA4wUdG) +[![Build RPCSX](../../../actions/workflows/rpcsx.yml/badge.svg)](../../../actions/workflows/rpcsx.yml) + +[![Formatting check](../../../actions/workflows/format.yml/badge.svg)](../../../actions/workflows/format.yml) + +[![](https://img.shields.io/discord/252023769500090368?color=5865F2&logo=discord&logoColor=white)](https://discord.gg/t6dzA4wUdG) @@ -27,7 +30,7 @@ If you want to contribute as a developer, please contact us in the [Discord](htt 4. Run - See usage message of rpcsx-os (-h argument), or join the [Discord](https://discord.gg/t6dzA4wUdG) for help. + See usage message of `rpcsx-os` (`-h` argument), or join the [Discord](https://discord.gg/t6dzA4wUdG) for help. ## License diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 4495ebc9e..293d639d3 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,15 +1,25 @@ name: Formatting check + on: push: + paths-ignore: + - "**/*.md" + - '**/*.txt' + - '3rdparty/*' pull_request: + paths-ignore: + - "**/*.md" + - '**/*.txt' + - '3rdparty/*' workflow_dispatch: + jobs: formatting-check: - name: Formatting Check runs-on: ubuntu-latest steps: - - name: Check out repo + - name: Checkout uses: actions/checkout@v3 + - name: Run clang-format uses: jidicula/clang-format-action@v4.11.0 with: diff --git a/.github/workflows/rpcsx.yml b/.github/workflows/rpcsx.yml new file mode 100644 index 000000000..a3dcb7477 --- /dev/null +++ b/.github/workflows/rpcsx.yml @@ -0,0 +1,42 @@ +name: Build RPCSX + +on: + push: + paths-ignore: + - "**/*.md" + - '**/*.txt' + pull_request: + paths-ignore: + - "**/*.md" + - '**/*.txt' + workflow_dispatch: + +jobs: + build-rpcsx: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive + + - name: Setup dependencies + run: | + sudo apt update + sudo apt install build-essential libunwind-dev \ + libglfw3-dev libvulkan-dev vulkan-validationlayers-dev \ + spirv-tools glslang-tools + + - name: Build RPCSX + run: | + cmake -B build + cmake --build build + + - name: Upload RPCSX + uses: actions/upload-artifact@v3 + with: + name: rpcsx-bin + path: build/bin/* + if-no-files-found: error