diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 6cb3f03..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Github Actions -on: - workflow_dispatch: {} - push: - branches: [ master ] - pull_request: - branches: [ master ] -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - version: - - stable - - devel - - steps: - - name: Checkout repository and submodules - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Cache choosenim - id: cache-choosenim - uses: actions/cache@v1 - with: - path: ~/.choosenim - key: ${{ runner.os }}-choosenim-stable - - - name: Cache nimble - id: cache-nimble - uses: actions/cache@v1 - with: - path: ~/.nimble - key: ${{ runner.os }}-nimble-stable - - - name: Setup Nim - uses: iffy/install-nim@v4.1.3 - with: - version: ${{ matrix.version }} - - - name: Print Nim version - run: nim -v - - name: Print Nimble version - run: nimble -v - - name: Nimble build - run: nimble build -Y --verbose - - name: Run install - run: nimble install -Y - - name: Run tests - run: nimble test -y - - name: Run tests orc - run: nimble test --mm:orc -y diff --git a/README.md b/README.md index 0b5f5ee..c152233 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,2 @@ -# You can use this nim template to jump start your nim library or project. +AOC 2022 -This template includes: -* MIT licence -* src directory and a private common.nim -* test directory -* GitHub Actions to run the tests on GitHub diff --git a/examples/example.nim b/examples/example.nim deleted file mode 100644 index 0262224..0000000 --- a/examples/example.nim +++ /dev/null @@ -1 +0,0 @@ -## Include an example on how to use your library diff --git a/nimtemplate.nimble b/nimtemplate.nimble deleted file mode 100644 index 99727f1..0000000 --- a/nimtemplate.nimble +++ /dev/null @@ -1,9 +0,0 @@ -version = "0.0.0" -author = "Your name" -description = "Description of your library" -license = "MIT" - -srcDir = "src" -bin = @["nimtemplate"] - -requires "nim >= 1.2.2" diff --git a/rename.bash b/rename.bash deleted file mode 100755 index 8c342f2..0000000 --- a/rename.bash +++ /dev/null @@ -1,11 +0,0 @@ -set -e - -PROJECT_NAME="$1" -echo $PROJECT_NAME - -sed -i.bak "s/nimtemplate/$PROJECT_NAME/g" tests/test.nim src/nimtemplate.nim nimtemplate.nimble - -mv src/nimtemplate src/$PROJECT_NAME -mv src/nimtemplate.nim src/$PROJECT_NAME.nim - -mv nimtemplate.nimble $PROJECT_NAME.nimble diff --git a/src/nimtemplate.nim b/src/nimtemplate.nim deleted file mode 100644 index 5fcd576..0000000 --- a/src/nimtemplate.nim +++ /dev/null @@ -1,3 +0,0 @@ -## Public interface to you library. - -import nimtemplate/common diff --git a/src/nimtemplate/common.nim b/src/nimtemplate/common.nim deleted file mode 100644 index 869f4b5..0000000 --- a/src/nimtemplate/common.nim +++ /dev/null @@ -1 +0,0 @@ -## Add private variables or functions here that you don't want to export. diff --git a/tests/config.nims b/tests/config.nims deleted file mode 100644 index a119208..0000000 --- a/tests/config.nims +++ /dev/null @@ -1 +0,0 @@ ---path:"../src" diff --git a/tests/test.nim b/tests/test.nim deleted file mode 100644 index 41fa755..0000000 --- a/tests/test.nim +++ /dev/null @@ -1,3 +0,0 @@ -## Put your tests here. - -import nimtemplate