Skip to content

Commit

Permalink
Merge branch 'support_key_number'
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLadanov committed May 25, 2024
2 parents b970078 + 25a61bb commit d91c1db
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
PROJECT_NAME: Template
PROJECT_NAME: NVS_Test

jobs:
build:
Expand Down
31 changes: 27 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,48 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4


- name: ZIP files
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: 'release.zip'
directory: 'Components'


- name: Download build artifatcs
uses: actions/download-artifact@v3
with:
name: Build_Output
- name: List of files
run: ls


- name: Upload lib source files to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release.zip
asset_name: NVS_Lib_$tag.zip
tag: ${{ github.ref }}


- name: Upload Windows executable file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Template.exe
asset_name: Template_amd64_Windows_$tag.exe
file: NVS_Test.exe
asset_name: NVS_Test_amd64_Windows_$tag.exe
tag: ${{ github.ref }}


- name: Upload Linux executable file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Template
asset_name: Template_amd64_Linux_$tag
file: NVS_Test
asset_name: NVS_Test_amd64_Linux_$tag
tag: ${{ github.ref }}
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "g++.exe - Сборка и отладка активного файла",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/Template",
"program": "${workspaceFolder}/build/NVS_Test",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10)

# Название проекта
project(Template)
project(NVS_Test)

# Переменная с именем исполняемого файла
set(EXECUTABLE ${PROJECT_NAME})
Expand Down

0 comments on commit d91c1db

Please sign in to comment.