Skip to content

Commit

Permalink
Add initial test
Browse files Browse the repository at this point in the history
  • Loading branch information
Slackadays committed Dec 10, 2022
1 parent 44615aa commit d25c144
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 40 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,6 @@ jobs:
with:
name: hajime-linux-amd64
path: hajime
#build-linux-amd64-avx2:
# runs-on: ubuntu-22.04
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Run a multi-line script
# run: |
# sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# sudo apt update
# sudo apt install -y libfmt-dev g++-12 libboost-all-dev libsensors-dev
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# brew install boost
# cmake source -DADD_FLAGS="-march=x86-64-v3" -DCMAKE_CXX_COMPILER=g++-11
# cmake --build . -j 4
#
# - uses: actions/upload-artifact@v3
# with:
# name: hajime-linux-amd64-avx2
# path: hajime
build-linux-amd64-avx512:
runs-on: ubuntu-22.04

Expand All @@ -73,23 +51,6 @@ jobs:
with:
name: hajime-linux-amd64-avx512
path: hajime
# build-linux-x86:
# runs-on: ubuntu-latest
##
## steps:
## - uses: actions/checkout@v3

## - name: Run a multi-line script
## run: |
## sudo apt update
## sudo apt install -y g++-10-i686-linux-gnu
## cmake -DCMAKE_CXX_COMPILER=i686-linux-gnu-g++-10 source
## cmake --build . -j 4
##
## - uses: actions/upload-artifact@v3
## with:
## name: hajime-linux-x86
## path: hajime
build-macos-amd64:
runs-on: macos-12

Expand All @@ -99,7 +60,6 @@ jobs:
- name: Run a multi-line script
run: |
brew install boost fmt libssh ncurses openssl
brew unlink openssl@3 && brew link --force openssl@3
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
cmake source
cmake --build . -j 4
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Hajime Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test-linux-amd64:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Run a multi-line script
run: |
sudo apt update
sudo apt install -y g++-12 libfmt-dev libboost-all-dev libsensors-dev
cmake source -D CMAKE_CXX_COMPILER=g++-12
cmake --build . -j 4
echo Test passed

0 comments on commit d25c144

Please sign in to comment.