From 63f4a332e7b539fac1a287450752ea7f4349c136 Mon Sep 17 00:00:00 2001 From: R1KO Date: Mon, 16 Jan 2023 16:04:18 +0200 Subject: [PATCH] fix CI build --- .github/workflows/build.yml | 31 +++++++++---------- .travis.yml | 59 ------------------------------------- README.md | 1 + 3 files changed, 15 insertions(+), 76 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 971efeb..6ddf650 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,13 +5,10 @@ on: [push, pull_request, workflow_dispatch] jobs: compile: runs-on: ubuntu-latest - continue-on-error: ${{ matrix.sm-version == '1.11.x' }} + continue-on-error: ${{ matrix.sm-version == '1.12.x' }} strategy: matrix: - sm-version: [ '1.9.x', '1.10.x', '1.11.x' ] - include: - - sm-version: "1.11.x" # https://github.com/rumblefrog/setup-sp/issues/5 - compiler-options: "-i=$includePath" + sm-version: [ '1.10.x', '1.11.x', '1.12.x' ] name: "Build SM ${{ matrix.sm-version }}" steps: @@ -57,15 +54,15 @@ jobs: - name: Find Assets shell: bash run: | - echo "artifact-1_9=$(find * -maxdepth 0 -type d -name "*1.9*")" >> $GITHUB_ENV echo "artifact-1_10=$(find * -maxdepth 0 -type d -name "*1.10*")" >> $GITHUB_ENV echo "artifact-1_11=$(find * -maxdepth 0 -type d -name "*1.11*")" >> $GITHUB_ENV + echo "artifact-1_12=$(find * -maxdepth 0 -type d -name "*1.12*")" >> $GITHUB_ENV - name: Arhive Assets run: | - zip -r ${{ env.artifact-1_9 }}.zip ${{ env.artifact-1_9 }} zip -r ${{ env.artifact-1_10 }}.zip ${{ env.artifact-1_10 }} zip -r ${{ env.artifact-1_11 }}.zip ${{ env.artifact-1_11 }} + zip -r ${{ env.artifact-1_12 }}.zip ${{ env.artifact-1_12 }} - name: Create Release id: create_release @@ -77,33 +74,33 @@ jobs: release_name: ${{ github.ref_name }} draft: true prerelease: false - - - name: Upload Asset + + - name: Upload Asset 1.10 uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ env.artifact-1_9 }}.zip - asset_name: ${{ env.artifact-1_9 }}.zip + asset_path: ${{ env.artifact-1_10 }}.zip + asset_name: ${{ env.artifact-1_10 }}.zip asset_content_type: application/zip - - name: Upload Asset + - name: Upload Asset 1.11 uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ env.artifact-1_10 }}.zip - asset_name: ${{ env.artifact-1_10 }}.zip + asset_path: ${{ env.artifact-1_11 }}.zip + asset_name: ${{ env.artifact-1_11 }}.zip asset_content_type: application/zip - - name: Upload Asset + - name: Upload Asset 1.12 uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ env.artifact-1_11 }}.zip - asset_name: ${{ env.artifact-1_11 }}.zip + asset_path: ${{ env.artifact-1_12 }}.zip + asset_name: ${{ env.artifact-1_12 }}.zip asset_content_type: application/zip \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e07092a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,59 +0,0 @@ -#General settings -dist: xenial -os: linux - -#Install some apt packages needed for spcomp -addons: - apt_packages: - - lib32z1 - - lib32stdc++6 - -language: c - -#Set the build environment -env: - global: - - INCLUDE=addons/sourcemod/scripting/include - - SCRIPTING=addons/sourcemod/scripting - - PLUGINS=addons/sourcemod/plugins - jobs: - - SMVERSION=1.9 - - SMVERSION=1.10 - - SMVERSION=1.11 - -jobs: - allow_failures: - - env: SMVERSION=1.11 - -install: - # Sourcemod download - - wget --input-file=http://sourcemod.net/smdrop/$SMVERSION/sourcemod-latest-linux - - tar -xzf $(cat sourcemod-latest-linux) -before_script: - - chmod +x $SCRIPTING/spcomp - - mkdir $SCRIPTING/compiled - - mkdir build - - cp -R addons build - - cp LICENSE build -script: - - $SCRIPTING/spcomp -E -o$SCRIPTING'/compiled/VIP_Core' -v0 $SCRIPTING'/VIP_Core.sp' - -#Release -before_deploy: - - ls -lR - - cp $SCRIPTING/compiled/VIP_Core.smx build/$PLUGINS - - zip -rq VIP_Core.zip build - - tar -czf VIP_Core.tar.gz build -deploy: - provider: releases - token: ${GH_TOKEN} - file: - - VIP_Core.zip - - VIP_Core.tar.gz - draft: true - on: - tags: true - -#Notifications -notifications: - email: false diff --git a/README.md b/README.md index 75c05e5..7556f02 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ [![Build](https://github.com/R1KO/VIP-Core/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/R1KO/VIP-Core/actions/workflows/build.yml) +Download latest vesrion [https://github.com/R1KO/VIP-Core/releases](Releases) [![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine/)