Skip to content

Commit

Permalink
feat: Set up based on sse2neon
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Oct 20, 2023
1 parent 5ad3d2b commit 38582d2
Show file tree
Hide file tree
Showing 18 changed files with 22,709 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
BasedOnStyle: Chromium
Language: Cpp
MaxEmptyLinesToKeep: 3
IndentCaseLabels: false
AllowShortIfStatementsOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
DerivePointerAlignment: false
PointerAlignment: Right
SpaceAfterCStyleCast: true
TabWidth: 4
UseTab: Never
IndentWidth: 4
BreakBeforeBraces: Linux
AccessModifierOffset: -4
ForEachMacros:
- SET_FOREACH
- RB_FOREACH
AlignEscapedNewlines: Left
45 changes: 45 additions & 0 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Github Actions

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
cross_compile_tests:
runs-on: ubuntu-20.04
steps:
- name: checkout code
uses: actions/checkout@v3.2.0
- name: setup riscv toolchain
run: |
mkdir /opt/riscv
export PATH=$PATH:/opt/riscv/bin
wget https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.10.18/riscv64-elf-ubuntu-20.04-gcc-nightly-2023.10.18-nightly.tar.gz
sudo tar -xzf riscv64-elf-ubuntu-20.04-gcc-nightly-2023.10.18-nightly.tar.gz -C /opt/
- name: run tests
run: |
export PATH=$PATH:/opt/riscv/bin
sh scripts/cross-test.sh qemu
check_test_cases:
runs-on: ubuntu-20.04
steps:
- name: checkout code
uses: actions/checkout@v3.2.0
- name: build artifact
run: |
make test
coding_style:
runs-on: ubuntu-20.04
steps:
- name: checkout code
uses: actions/checkout@v3.2.0
- name: style check
run: |
sudo apt-get install -q -y clang-format-15
sh scripts/check-format.sh
shell: bash
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.exe
*.o
*.gch
tests/*.d
tests/main
.vs/
Debug/
Release/
Loading

0 comments on commit 38582d2

Please sign in to comment.