Skip to content

Commit

Permalink
Split Github Actions workflow into separate items.
Browse files Browse the repository at this point in the history
  • Loading branch information
kondrak committed Jul 7, 2023
1 parent c09722f commit df3f1fd
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 80 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Linux
env:
VK_VERSION: 1.3.204.1
on:
push:
branches:
- master

jobs:
Linux:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Install required packages
shell: bash
run: |
sudo apt-get -qq update
sudo apt-get install -y make gcc g++ mesa-common-dev libglu1-mesa-dev libxxf86dga-dev libxxf86vm-dev libasound2-dev libx11-dev libxcb1-dev
- name: Download and Install Vulkan SDK
shell: bash
run: |
curl -L -v -o vulkansdk-linux-x86_64-$VK_VERSION.tar.gz -O https://sdk.lunarg.com/sdk/download/$VK_VERSION/linux/vulkan_sdk.tar.gz?Human=true
tar zxf vulkansdk-linux-x86_64-$VK_VERSION.tar.gz
- name: Build vkQuake2 Debug
shell: bash
run: |
export VULKAN_SDK=$GITHUB_WORKSPACE/$VK_VERSION/x86_64
cd linux
make clean debug
cd ..
- name: Upload vkQuake2 Debug artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-Ubuntu-debug-x64
path: |
linux/debugx64
!linux/debugx64/**/*.o
- name: Build vkQuake2 Release
shell: bash
run: |
export VULKAN_SDK=$GITHUB_WORKSPACE/$VK_VERSION/x86_64
cd linux
make clean release
cd ..
- name: Upload vkQuake2 Release artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-Ubuntu-release-x64
path: |
linux/releasex64
!linux/releasex64/**/*.o
44 changes: 44 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: MacOS
env:
VK_VERSION: 1.3.204.1
on:
push:
branches:
- master

jobs:
MacOS:
runs-on: macos-11

steps:
- uses: actions/checkout@v2

- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: $VK_VERSION
cache: true
- name: Build vkQuake2 Debug
run: |
cd macos
make clean-xcode debug-xcode
cd ..
- name: Upload vkQuake2 Debug artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-MacOS-debug-x64
path: |
macos/vkQuake2
!macos/vkQuake2/**/*.o
- name: Build vkQuake2 Release
run: |
cd macos
make clean-xcode release-xcode
cd ..
- name: Upload vkQuake2 Release artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-MacOS-release-x64
path: |
macos/vkQuake2
!macos/vkQuake2/**/*.o
81 changes: 1 addition & 80 deletions .github/workflows/main.yml → .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Windows
env:
VK_VERSION: 1.3.204.1
on:
Expand All @@ -7,85 +7,6 @@ on:
- master

jobs:
Linux:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: Install required packages
shell: bash
run: |
sudo apt-get -qq update
sudo apt-get install -y make gcc g++ mesa-common-dev libglu1-mesa-dev libxxf86dga-dev libxxf86vm-dev libasound2-dev libx11-dev libxcb1-dev
- name: Download and Install Vulkan SDK
shell: bash
run: |
curl -L -v -o vulkansdk-linux-x86_64-$VK_VERSION.tar.gz -O https://sdk.lunarg.com/sdk/download/$VK_VERSION/linux/vulkan_sdk.tar.gz?Human=true
tar zxf vulkansdk-linux-x86_64-$VK_VERSION.tar.gz
- name: Build vkQuake2 Debug
shell: bash
run: |
export VULKAN_SDK=$GITHUB_WORKSPACE/$VK_VERSION/x86_64
cd linux
make clean debug
cd ..
- name: Upload vkQuake2 Debug artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-Ubuntu-debug-x64
path: |
linux/debugx64
!linux/debugx64/**/*.o
- name: Build vkQuake2 Release
shell: bash
run: |
export VULKAN_SDK=$GITHUB_WORKSPACE/$VK_VERSION/x86_64
cd linux
make clean release
cd ..
- name: Upload vkQuake2 Release artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-Ubuntu-release-x64
path: |
linux/releasex64
!linux/releasex64/**/*.o
MacOS:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: $VK_VERSION
cache: true
- name: Build vkQuake2 Debug
run: |
cd macos
make clean-xcode debug-xcode
cd ..
- name: Upload vkQuake2 Debug artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-MacOS-debug-x64
path: |
macos/vkQuake2
!macos/vkQuake2/**/*.o
- name: Build vkQuake2 Release
run: |
cd macos
make clean-xcode release-xcode
cd ..
- name: Upload vkQuake2 Release artifacts
uses: actions/upload-artifact@v2.1.3
with:
name: vkQuake2-MacOS-release-x64
path: |
macos/vkQuake2
!macos/vkQuake2/**/*.o
Windows:
env:
VULKAN_SDK: c:\VulkanSDK\%VK_VERSION%
Expand Down

0 comments on commit df3f1fd

Please sign in to comment.