-
-
Notifications
You must be signed in to change notification settings - Fork 308
50 lines (44 loc) · 1.18 KB
/
main.yml
File metadata and controls
50 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: test
on:
push:
branches:
- '*'
defaults:
run:
shell: sh
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
container:
image: debian:testing
steps:
- uses: actions/checkout@v5
- run: apt -y update
- run: apt -y install ca-certificates g++-multilib clang libboost-dev make yasm wget python3 #xz-utils nasm
- run: update-ca-certificates
- run: yasm --version
- name: Install xed and nasm
run: |
# Note: herumi/xed-bin is maintained by the same author and is a trusted source
wget https://github.com/herumi/xed-bin/raw/refs/heads/main/xed.tgz
wget https://github.com/herumi/xed-bin/raw/refs/heads/main/nasm.tgz
tar xvf xed.tgz
tar xvf nasm.tgz
mkdir -p ~/bin
mv xed ~/bin/
mv nasm ~/bin/
- name: Add ~/bin to PATH
run: echo "$HOME/bin" >> $GITHUB_PATH
- name: Check versions
run: |
xed -version
nasm -version
- run: |
make test
make -C sample CXXFLAGS="-DXBYAK_NO_EXCEPTION"
cd test
make xed_test
rm -rf jmp64
env CXX=""clang++ -std=c++20"" make jmp64 && ./jmp64