Skip to content

Commit

Permalink
fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
R1KO authored Jan 16, 2023
1 parent d106744 commit 63f4a33
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 76 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -77,33 +74,33 @@ jobs:
release_name: ${{ github.ref_name }}
draft: true
prerelease: false
- name: Upload Asset

- name: Upload Asset 1.10
uses: actions/[email protected]
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/[email protected]
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/[email protected]
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
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)

Expand Down

0 comments on commit 63f4a33

Please sign in to comment.