diff options
author | Andrea Pappacoda <[email protected]> | 2022-12-02 14:58:59 +0100 |
---|---|---|
committer | Andrea Pappacoda <[email protected]> | 2022-12-02 15:10:35 +0100 |
commit | fbb18f69d5aba767a62e4cdb598ddb2da9e964d6 (patch) | |
tree | f0ae7d25a19e3046530ff26f9ea8b09b9b861d03 /.github/workflows | |
parent | bb70083e64665cd66ce3eb10be080f4eb47f4290 (diff) | |
download | xbyak-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 '.github/workflows')
-rw-r--r-- | .github/workflows/main.yml | 20 |
1 files changed, 13 insertions, 7 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" |