-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publish version 0.0.7
- Loading branch information
Showing
31 changed files
with
996 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# @Github: https://github.com/Certseeds/CS203_DSAA_template | ||
# @Organization: SUSTech | ||
# @Author: nanoseeds | ||
# @Date: 2020-07-26 16:36:10 | ||
# @LastEditors: nanoseeds | ||
#@LastEditTime: 2020-07-26 16:43:03 | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: test for pull_request | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
push: | ||
branches: [ dev ] | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test: | ||
name: test for pull_request | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# ensure the path and files of project | ||
- name: ensure the path and files of project | ||
run: sudo apt install tree; tree | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.10.2' | ||
|
||
- name: Use cmake | ||
run: cmake --version | ||
|
||
- name: prepare permission | ||
working-directory: ./script | ||
run: chmod 0755 ./test.sh | ||
|
||
- name: run the test script | ||
working-directory: ./script | ||
run: ./test.sh | ||
|
||
- name: tree | ||
run: tree | ||
|
||
# This workflow contains a single job called "build" | ||
build: | ||
name: test for the release script | ||
needs: test | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# ensure the path and files of project | ||
- name: ensure the path and files of project | ||
run: sudo apt install tree; tree | ||
|
||
- name: run script | ||
working-directory: ./script | ||
run: python3 file_template.py | ||
|
||
- name: tree the packet | ||
run: tree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,6 @@ name: test and release | |
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
|
@@ -32,10 +30,7 @@ jobs: | |
|
||
# ensure the path and files of project | ||
- name: ensure the path and files of project | ||
run: | | ||
echo Hello, world! | ||
echo $(pwd) | ||
ls -la | ||
run: sudo apt install tree; tree | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
|
@@ -45,31 +40,17 @@ jobs: | |
- name: Use cmake | ||
run: cmake --version | ||
|
||
- name: mkdir for build | ||
run: mkdir ./cmake_build_path | ||
- name: prepare permission | ||
working-directory: ./script | ||
run: chmod 0755 ./test.sh | ||
|
||
- name: build the project | ||
working-directory: ./cmake_build_path | ||
run: | | ||
cmake .. | ||
make | ||
- name: run the test script | ||
working-directory: ./script | ||
run: ./test.sh | ||
|
||
- name: run the test | ||
working-directory: ./cmake_build_path | ||
run: ./CS203_DSAA_template_test | ||
|
||
- name: run the algorithm_sort_test | ||
working-directory: ./cmake_build_path/algorithm/sort | ||
run: ./basic_algorithms_sort | ||
|
||
- name: run the binary_search test | ||
working-directory: ./cmake_build_path/algorithm/binary_search | ||
run: ./basic_algorithms_binary_search | ||
- name: tree | ||
run: tree | ||
|
||
- name: Run a multi-line script | ||
run: | | ||
echo $(pwd) | ||
ls -la | ||
# This workflow contains a single job called "build" | ||
build: | ||
name: publish release | ||
|
@@ -87,30 +68,26 @@ jobs: | |
|
||
# ensure the path and files of project | ||
- name: ensure the path and files of project | ||
run: | | ||
echo Hello, world! | ||
echo $(pwd) | ||
ls -la | ||
run: sudo apt install tree; tree | ||
|
||
- name: run script | ||
working-directory: ./script | ||
run: python3 file_template.py | ||
|
||
- name: zip the packet | ||
working-directory: ./../ | ||
run: | | ||
echo $(pwd) | ||
zip -r script_no_need.zip ./CS203_DSAA_template -x "*/.git/*" | ||
echo $(pwd) | ||
tree | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: 0.0.6.4 | ||
release_name: 0.0.6.4 | ||
tag_name: 0.0.7 | ||
release_name: 0.0.7 | ||
draft: false | ||
prerelease: false | ||
|
||
|
@@ -130,8 +107,6 @@ jobs: | |
asset_name: script_no_need.zip | ||
asset_content_type: application/zip | ||
|
||
# Runs a set of commands using the runners shell | ||
- name: Run a multi-line script | ||
run: | | ||
echo $(pwd) | ||
ls -la | ||
- name: tree | ||
run: tree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# | ||
# @Github: https://github.com/Certseeds/CS203_DSAA_template | ||
# @Organization: SUSTech | ||
# @Author: nanoseeds | ||
# @Date: 2020-07-27 22:08:31 | ||
# @LastEditors: nanoseeds | ||
# @LastEditTime: 2020-07-27 22:10:08 | ||
|
||
name: test for dev | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ dev ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test: | ||
name: test dev | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
|
||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# ensure the path and files of project | ||
- name: ensure the path and files of project | ||
run: | | ||
sudo apt install tree | ||
tree | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.10.2' | ||
|
||
- name: Use cmake | ||
run: cmake --version | ||
|
||
- name: prepare permission | ||
working-directory: ./script | ||
run: chmod 0755 ./test.sh | ||
|
||
- name: run the test script | ||
working-directory: ./script | ||
run: ./test.sh | ||
|
||
- name: tree | ||
run: tree | ||
# This workflow contains a single job called "build" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.