aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample
diff options
context:
space:
mode:
authorAndrea Pappacoda <[email protected]>2022-12-02 14:58:59 +0100
committerAndrea Pappacoda <[email protected]>2022-12-02 15:10:35 +0100
commitfbb18f69d5aba767a62e4cdb598ddb2da9e964d6 (patch)
treef0ae7d25a19e3046530ff26f9ea8b09b9b861d03 /sample
parentbb70083e64665cd66ce3eb10be080f4eb47f4290 (diff)
downloadxbyak-fbb18f69d5aba767a62e4cdb598ddb2da9e964d6.tar.gz
xbyak-fbb18f69d5aba767a62e4cdb598ddb2da9e964d6.zip
ci: use containers
GitHub's CI default runners are full of all kinds of software, and this can cause hard to reproduce errors. Luckly, GitHub Actions supports running jobs in a container image, so that the build environment is minimal and reprocucible. This patch changes the main CI job to run in a Debian Testing container, fixing the issues described in <https://github.com/herumi/xbyak/commit/cfb1127c3bf28d55e68b367a0a6944829a5c025d>. As Debian Testing is a semi-rolling relase distribution, and nasm 2.15 is shipped by default, I've also modified the script to install nasm from apt instead of building it from source.
Diffstat (limited to 'sample')
-rw-r--r--sample/Makefile4
1 files changed, 1 insertions, 3 deletions
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