Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ body:
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Certseeds/CS203_DSAA_template_java/blob/master/.github/code_of_conduct.md)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Certseeds/algorithm-template-java/blob/master/.github/code_of_conduct.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
required: true
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ body:
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Certseeds/CS203_DSAA_template_java/blob/master/.github/code_of_conduct.md)
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Certseeds/algorithm-template-java/blob/master/.github/code_of_conduct.md)
options:
- label: I agree to follow this project's Code of Conduct
required: true
45 changes: 16 additions & 29 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @Github: https://github.com/Certseeds/CS203_DSAA_template_java
# @Github: https://github.com/Certseeds/algorithm-template-java
# @Organization: SUSTech
# @Author: nanoseeds
# @Date: 2020-07-28 22:43:03
Expand All @@ -18,31 +18,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-latest ,windows-latest ]
os: [ ubuntu-latest ,windows-latest ]
steps:
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v5

# The Java version to make available on the path. Takes a whole or semver Java version,
# or 1.x syntax (e.g. 1.8 => Java 8.x).
# Early access versions can be specified in the form of e.g. 14-ea, 14.0.0-ea, or 14.0.0-ea.28
- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
java-version: 11
java-version: 21
distribution: 'temurin'
cache: 'maven'

- name: Use java and javac
run: javac -version; java -version

- name: windows clean build test
if: ${{ runner.os == 'windows' }}
run: ./mvnw.cmd clean compile test

- name: unix-like clean build test
if: ${{ runner.os != 'windows' }}
run: chmod +x ./mvnw.sh && ./mvnw.sh clean compile test
run: mvn clean compile test

# This workflow contains a single job called "build"
build:
Expand All @@ -56,43 +51,35 @@ jobs:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v5

# ensure the path and files of project
- name: ensure the path and files of project
run: sudo apt install tree; tree

- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
# The Java version to make available on the path. Takes a whole or semver Java version,
#or 1.x syntax (e.g. 1.8 => Java 8.x).
# Early access versions can be specified in the form of e.g. 14-ea, 14.0.0-ea, or 14.0.0-ea.28
java-version: 11
java-version: 21
distribution: 'temurin'
cache: 'maven'

# - name: run script
# working-directory: ./script
# run: javac ./file_producer.java; java file_producer

- name: zip the packet
working-directory: ./../
run: |
zip -r script_no_need.zip ./CS203_DSAA_template_java -x "*/.git/*"
mv ./script_no_need.zip ./CS203_DSAA_template_java/script_no_need.zip

- name: unzip the packet
run: |
unzip ./script_no_need.zip
mkdir temp
mv ./CS203_DSAA_template_java ./temp/CS203_DSAA_template_java
mv ./temp ./CS203_DSAA_template_java

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: script_no_need
path: CS203_DSAA_template_java
path: |
./**
!.git/**
!**/.git/**
if-no-files-found: error
# 压缩只执行一次(由 upload-artifact 完成);无需预先 zip

# Runs a set of commands using the runners shell
- name: tree
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @Github: https://github.com/Certseeds/CS203_DSAA_template_java
# @Github: https://github.com/Certseeds/algorithm-template-java
# @Organization: SUSTech
# @Author: nanoseeds
# @Date: 2020-07-28 22:43:03
Expand All @@ -23,41 +23,40 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-latest ]
os: [ 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@v3
uses: actions/checkout@v5

- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
java-version: 11
java-version: 21
distribution: 'temurin'
cache: 'maven'

- name: unix-like clean build test
if: ${{ runner.os != 'windows' }}
run: chmod +x ./mvnw.sh && ./mvnw.sh clean compile test
run: mvn clean compile test

# This workflow contains a single job called "build"
build:
name: publish release
if: github.repository == 'Certseeds/CS203_DSAA_template_java'
if: github.repository == 'Certseeds/algorithm-template-java'
needs: test
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@v3
uses: actions/checkout@v5

- name: Setup Java JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v5
with:
java-version: 11
java-version: 21
distribution: 'temurin'
cache: 'maven'

Expand Down Expand Up @@ -88,7 +87,7 @@ jobs:
working-directory: ./../
run: |
echo $(pwd)
zip -r script_no_need.zip ./CS203_DSAA_template_java -x "*/.git/*"
zip -r script_no_need.zip ./algorithm-template-java -x "*/.git/*"
echo $(pwd)

- name: release
Expand All @@ -104,7 +103,7 @@ jobs:

release-branch:
name: publish release-branch
if: github.repository == 'Certseeds/CS203_DSAA_template_java'
if: github.repository == 'Certseeds/algorithm-template-java'
needs: [ test, build ]
# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -113,7 +112,7 @@ jobs:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout code
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Branch name
id: branch_name
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitattributes

This file was deleted.

10 changes: 0 additions & 10 deletions .husky/pre-commit

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions .idea/codeStyles/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .mvn/wrapper/.gitignore

This file was deleted.

127 changes: 0 additions & 127 deletions .mvn/wrapper/MavenWrapperDownloader.java

This file was deleted.

1 change: 0 additions & 1 deletion .mvn/wrapper/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions .mvn/wrapper/maven-wrapper.properties

This file was deleted.

Loading
Loading