diff --git a/.github/workflows/ci-suite.yml b/.github/workflows/ci-suite.yml index f9a8348888..38a721fc92 100644 --- a/.github/workflows/ci-suite.yml +++ b/.github/workflows/ci-suite.yml @@ -801,167 +801,3 @@ jobs: asset_path: ./ServerUpdatePackage.zip asset_name: ServerUpdatePackage.zip asset_content_type: application/zip - - - master - -env: - TGS4_TEST_DISCORD_CHANNEL: ${{ secrets.DISCORD_CHANNEL_ID }} - TGS4_TEST_DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} - TGS4_TEST_IRC_CHANNEL: ${{ secrets.IRC_CHANNEL }} - TGS4_TEST_IRC_CONNECTION_STRING: ${{ secrets.IRC_CONNECTION_STRING }} - TGS4_TEST_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TGS4_RELEASE_NOTES_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -jobs: - dmapi-build: - name: Build DMAPI - env: - BYOND_MAJOR: 513 - BYOND_MINOR: 1527 - runs-on: ubuntu-latest - steps: - - name: Install x86 libc Dependencies - run: | - sudo dpkg --add-architecture i386 - sudo apt-get update - sudo apt-get install -y libc6-i386 libstdc++6:i386 - - - name: Install BYOND - if: steps.cache-byond.outputs.cache-hit != 'true' - run: | - echo "Setting up BYOND." - mkdir -p "$HOME/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}" - cd "$HOME/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}" - curl "http://www.byond.com/download/build/${{ env.BYOND_MAJOR }}/${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}_byond_linux.zip" -o byond.zip - unzip byond.zip - cd byond - make here - exit 0 - - - name: Checkout - uses: actions/checkout@v1 - - - name: Build DMAPI Test Project - run: | - set -e - retval=1 - source $HOME/BYOND-${{ env.BYOND_MAJOR }}.${{ env.BYOND_MINOR }}/byond/bin/byondsetup - - if hash DreamMaker 2>/dev/null - then - DreamMaker tests/DMAPI/BasicOperation/basic_operation_test.dme 2>&1 | tee result.log - retval=$? - if ! grep '\- 0 errors, 0 warnings' result.log - then - retval=1 - fi - else - echo "Couldn't find the DreamMaker executable, aborting." - retval=2 - fi - exit $retval - - dox-build: - name: Build Doxygen Site - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Patch Doxyfile - run: | - VERSION=$(cat "build/Version.props" | grep -oPm1 "(?<=)[^<]+") - echo -e "\nPROJECT_NUMBER = $VERSION\nINPUT = .\nOUTPUT_DIRECTORY = ./doxout\nPROJECT_LOGO = ./build/tgs.ico\nHAVE_DOT=YES" >> "docs/Doxyfile" - - - name: Doxygen Build - uses: mattnotmitt/doxygen-action@v1 - with: - doxyfile-path: 'docs/Doxyfile' - - - name: gh-pages push - if: github.event_name == 'push' && github.event.ref == 'refs/heads/dev' - run: | - git clone -b gh-pages --single-branch "https://git@github.com/tgstation/tgstation-server" $HOME/tgsdox - pushd $HOME/tgsdox - rm -r * - popd - echo ./doxout/* | xargs sudo mv -t $HOME/tgsdox - cd $HOME/tgsdox - git config --global push.default simple - git config user.name "tgstation-server" - git config user.email "tgstation-server@tgstation13.org" - echo '# THIS BRANCH IS AUTO GENERATED BY GITHUB ACTIONS' > README.md - - # Need to create a .nojekyll file to allow filenames starting with an underscore - # to be seen on the gh-pages site. Therefore creating an empty .nojekyll file. - echo "" > .nojekyll - echo "Adding files..." - git add --all - echo "Committing..." - git diff-index --quiet HEAD || git commit -m "Deploy code docs to GitHub Pages for workflow run ${{ github.run_number }}" -m "Commit: ${{ github.event.head_commit.id }}" - echo "Pushing..." - git push -f "https://${{ secrets.DEV_PUSH_TOKEN }}@github.com/tgstation/tgstation-server" 2>&1 - - docker-build: - name: Build Docker Image - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Build Docker Image - run: docker build . -f build/Dockerfile - - linux-unit-tests: - name: Linux Unit Tests - strategy: - matrix: - configuration: [ 'Debug', 'Release' ] - runs-on: ubuntu-latest - steps: - - name: Install Node 12.X - uses: actions/setup-node@v1 - with: - node-version: 12.x - - - name: Setup dotnet 3.1.X - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.x - - - name: Checkout - uses: actions/checkout@v1 - - - name: Build - run: dotnet build -c ${{ matrix.configuration }}NoService - - - name: Run Unit Tests - run: sudo dotnet test tgstation-server.sln --no-build --filter FullyQualifiedName!~IntegrationTest -l "console;verbosity=detailed;noprogress=true" -c ${{ matrix.configuration }}NoService --collect:"XPlat Code Coverage" --settings build/coverlet.runsettings -r ./TestResults - - - name: Store Code Coverage - uses: actions/upload-artifact@v2 - with: - name: linux-unit-test-coverage-${{ matrix.configuration }} - path: ./TestResults/ - - windows-unit-tests: - name: Windows Unit Tests - strategy: - matrix: - configuration: [ 'Debug', 'Release' ] - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Build - run: dotnet build -c ${{ matrix.configuration }} - - - name: Run Unit Tests - run: dotnet test tgstation-server.sln --no-build --filter FullyQualifiedName!~IntegrationTest -l "console;verbosity=detailed;noprogress=true" -c ${{ matrix.configuration }} --collect:"XPlat Code Coverage" --settings build/coverlet.runsettings -r ./TestResults - - - name: Store Code Coverage - uses: actions/upload-artifact@v2 - with: - name: windows-unit-test-coverage-${{ matrix.configuration }} - path: ./TestResults/