Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Linux automated build and release. #471

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Continuous build and release
on: [push, pull_request]

permissions:
contents: write

jobs:
nix_x86_64:
name: Linux x86_64
runs-on: ubuntu-latest
container: ubuntu:20.04
env:
RELEASE_DIRECTORY: /tmp/OpenLara_Release
RELEASE_FILE_README: /tmp/OpenLara_Release/readme.txt
steps:
- name: Retrieve sources
uses: actions/checkout@v3
- name: Install dependencies
run: |
apt update
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y clang libgl-dev libpulse-dev libx11-dev zip
- name: Build
run: ./build.sh
working-directory: src/platform/nix
- name: Create archive
run: |
mkdir -p ${{ env.RELEASE_DIRECTORY }}
cp bin/OpenLara ${{ env.RELEASE_DIRECTORY }}
printf "Instructions:\n" > ${{ env.RELEASE_FILE_README }}
printf "STEP 1: Let's assume that you own the original game, so download and unzip (\"extract here\") these archives:\n" >> ${{ env.RELEASE_FILE_README }}
printf " http://xproger.info/projects/OpenLara/files/TR1_data.7z\n" >> ${{ env.RELEASE_FILE_README }}
printf " http://xproger.info/projects/OpenLara/files/TR1_audio.7z\n" >> ${{ env.RELEASE_FILE_README }}
printf "STEP 2: Copy the extracted folders (audio, PSXDATA, DELDATA & FMV) next to the OpenLara file\n" >> ${{ env.RELEASE_FILE_README }}
printf "STEP 3: Run OpenLara application and enjoy the game!\n\n" >> ${{ env.RELEASE_FILE_README }}
printf "YouTube: https://youtube.com/c/TimurGagiev\n" >> ${{ env.RELEASE_FILE_README }}
printf "Discord: https://discord.gg/EF8JaQB\n" >> ${{ env.RELEASE_FILE_README }}
printf "Telegram: https://t.me/openlara\n" >> ${{ env.RELEASE_FILE_README }}
cd ${{ env.RELEASE_DIRECTORY }} && zip OpenLara_nix.zip *
- name: Release (only when pushing to the master branch)
uses: softprops/action-gh-release@v1
if: ${{ github.ref == 'refs/heads/master' }}
with:
files: ${{ env.RELEASE_DIRECTORY }}/OpenLara_nix.zip
name: Continuous build
tag_name: continuous-build