Skip to content

Commit

Permalink
Merge pull request #357 from HapticX/dev
Browse files Browse the repository at this point in the history
v4.6.2
  • Loading branch information
Ethosa authored Oct 5, 2024
2 parents e9314bb + cec6f12 commit 06d1257
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,34 @@ jobs:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter.
src: 'src/*.nim'
built_in_server:
name: Test C via built-in server 🧪
needs: dependencies
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
env:
TIMEOUT_EXIT_STATUS: 124
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.nimble
.nim_runtime
key: ${{ runner.os }}-nimble-v2-${{ hashFiles('*.nimble') }}
- name: Build C tests (Default HTTP Server) ⚡
run: |
export PATH=$PATH:$PWD/.nim_runtime/bin
cd tests
echo "###===--- Default for" $file "---===###"
for file in $(ls -v testc*.nim); do
echo "###===--- C Test for " $file " via built-in server ---===###"
nim c -d:debug --hints:off --warnings:off $file
done
shell: bash
async_http_server:
name: Test C via AsyncHttpServer 🧪
needs: dependencies
Expand All @@ -91,7 +119,7 @@ jobs:
echo "###===--- Default for" $file "---===###"
for file in $(ls -v testc*.nim); do
echo "###===--- C Test for " $file " via stdlib ---===###"
nim c -d:debug --hints:off --warnings:off $file
nim c -d:debug -d:stdserver --hints:off --warnings:off $file
done
shell: bash
micro_async_http_server:
Expand Down
2 changes: 1 addition & 1 deletion happyx.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

description = "Macro-oriented asynchronous web-framework written with ♥"
author = "HapticX"
version = "4.6.1"
version = "4.6.2"
license = "MIT"
srcDir = "src"
installExt = @["nim"]
Expand Down
2 changes: 1 addition & 1 deletion src/happyx/core/constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const
# Framework version
HpxMajor* = 4
HpxMinor* = 6
HpxPatch* = 1
HpxPatch* = 2
HpxVersion* = $HpxMajor & "." & $HpxMinor & "." & $HpxPatch


Expand Down
2 changes: 1 addition & 1 deletion tests/button.hpx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</template>


<script js>
<script lang="js">
console.log("Hello, world!");
</script>

Expand Down

0 comments on commit 06d1257

Please sign in to comment.