diff options
-rw-r--r-- | .github/workflows/main.yml | 20 | ||||
-rw-r--r-- | sample/Makefile | 4 |
2 files changed, 14 insertions, 10 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e53b98..0e291ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,15 +1,21 @@ name: test on: [push] +defaults: + run: + shell: sh + +permissions: + contents: read + jobs: - build: - name: test + test: runs-on: ubuntu-latest + container: + image: debian:testing steps: - - uses: actions/checkout@v2 - - run: sudo apt update - - run: sudo apt install yasm g++-multilib tcsh - - run: wget https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.gz - - run: tar xvfz nasm-2.15.05.tar.gz && cd nasm-2.15.05 && ./configure && make && sudo make install && cd .. + - uses: actions/checkout@v3 + - run: apt -y update + - run: apt -y install g++-multilib libboost-dev make nasm yasm - run: make test - run: make -C sample CXXFLAGS="-DXBYAK_NO_EXCEPTION" diff --git a/sample/Makefile b/sample/Makefile index 4c57767..9166360 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -1,9 +1,7 @@ XBYAK_INC=../xbyak/xbyak.h CXX?=g++ -#BOOST_EXIST=$(shell echo "#include <boost/spirit/core.hpp>" | $(CXX) -x c++ -c - 2>/dev/null && echo 1) -# I don't know why the above code causes an error on GitHub action. -BOOST_EXIST?=0 +BOOST_EXIST=$(shell echo "#include <boost/spirit/core.hpp>" | $(CXX) -x c++ -c - 2>/dev/null && echo 1) UNAME_M=$(shell uname -m) ONLY_64BIT=0 |