Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
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
35 changes: 18 additions & 17 deletions .github/workflows/turdis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ jobs:
tools/travis/build_tgui.sh
tools/travis/check_grep.sh

- name: Run linter
- name: Run Linter
run: ~/dreamchecker
compile:
name: Compile All Maps
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Install dependencies
- name: Install Dependencies
run: |
curl https://repogen.simplylinux.ch/txt/bionic/sources_3a64d21a7855de8236118d7d04a3c5fef63083fb.txt | sudo tee /etc/apt/sources.list
sudo dpkg --add-architecture i386
Expand Down Expand Up @@ -103,21 +103,22 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
- name: Install Dependencies
run: |
curl https://repogen.simplylinux.ch/txt/bionic/sources_3a64d21a7855de8236118d7d04a3c5fef63083fb.txt | sudo tee /etc/apt/sources.list
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt install libstdc++6:i386 gcc-multilib g++-7 g++-7-multilib libmariadb-client-lgpl-dev:i386 libmariadbd-dev

- name: Cache BYOND
uses: actions/cache@v1
with:
path: ~/BYOND
key: ${{ runner.os }}-byond-${{ hashFiles('Dockerfile')}}
restore-keys: ${{ runner.os }}-byond

- name: Setup environment
- name: Setup Environment
run: |
tools/travis/install_byond.sh
echo "::set-env name=BYOND_SYSTEM::/home/runner/BYOND/byond"
Expand All @@ -127,29 +128,29 @@ jobs:
cd $GITHUB_WORKSPACE
tools/travis/install_libmariadb.sh
tools/travis/install_rust_g.sh

- name: Setup Database
run: |
mysql -u root -h 127.0.0.1 -e 'CREATE DATABASE tg_travis;'
mysql -u root -h 127.0.0.1 tg_travis < SQL/tgstation_schema.sql
mysql -u root -h 127.0.0.1 -e 'CREATE DATABASE tg_travis_prefixed;'
mysql -u root -h 127.0.0.1 tg_travis_prefixed < SQL/tgstation_schema_prefixed.sql
tools/travis/build_bsql.sh

- name: Compile and run tests
- name: Compile
run: |
tools/travis/dm.sh -DTRAVISBUILDING yogstation.dme || travis_terminate 1
tools/travis/run_server.sh

- name: Prepare Artifacts
run: |
mkdir artifacts
cp yogstation.dme artifacts
cp yogstation.rsc artifacts

- name: Upload DMB
- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
name: DMB
path: ${{ github.workspace }}/yogstation.dmb
name: DMB + RSC
path: ${{github.workspace}}/artifacts

- name: Upload RSC
uses: actions/upload-artifact@v1
with:
name: RSC
path: ${{ github.workspace }}/yogstation.rsc
- name: Run Tests
run: |
tools/travis/run_server.sh