Skip to content

Commit

Permalink
packaging: support aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
linzuzeng committed Jun 25, 2024
1 parent b994e29 commit e3c9343
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ jobs:
# export LDFLAGS="-L/opt/homebrew/opt/llvm@12/lib"
# export CPPFLAGS="-I/opt/homebrew/opt/llvm@12/include"
# export CXXFLAGS="-I/opt/homebrew/opt/llvm@12/include"
# clang etabackend/cpp/PARSE_TimeTagFileHeader.cpp -D __linux__ -S -emit-llvm
# clang etabackend/cpp/PARSE_TimeTags.cpp -D __linux__ -S -emit-llvm
# clang etabackend/cpp/INFRA_vchn.cpp -D __linux__ -S -emit-llvm
# mv *.ll etabackend/ll/m1
# clang etabackend/cpp/PARSE_TimeTagFileHeader.cpp -S -emit-llvm
# clang etabackend/cpp/PARSE_TimeTags.cpp -S -emit-llvm
# clang etabackend/cpp/INFRA_vchn.cpp -S -emit-llvm
# mv *.ll etabackend/ll/m1/
# pip install -e ./
# pytest
# - name: Upload artifact
Expand All @@ -105,8 +105,7 @@ jobs:
- name: Install dependencies and build
run: |
sudo apt-get update
sudo apt-get install -y clang-11
sudo apt-get install -y llvm-11
sudo apt-get install -y clang-11 llvm-11 gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
Expand All @@ -115,6 +114,10 @@ jobs:
clang-11 etabackend/cpp/PARSE_TimeTags.cpp -S -emit-llvm
clang-11 etabackend/cpp/INFRA_vchn.cpp -S -emit-llvm
mv *.ll etabackend/ll/posix
clang-11 -target aarch64-linux-gnu etabackend/cpp/PARSE_TimeTagFileHeader.cpp -S -emit-llvm
clang-11 -target aarch64-linux-gnu etabackend/cpp/PARSE_TimeTags.cpp -S -emit-llvm
clang-11 -target aarch64-linux-gnu etabackend/cpp/INFRA_vchn.cpp -S -emit-llvm
mv *.ll etabackend/ll/m1
python3 setup.py bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v1
Expand Down Expand Up @@ -155,7 +158,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
python-version: ["3.9", "3.11"]
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion etabackend/cpp/PARSE_TimeTagFileHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ Zuzeng Lin, KTH, Nov 2017
#ifdef __linux__
/* Linux */
#include <wchar.h>

#endif
#ifdef __APPLE__
/* macOS */
#include <wchar.h>
#endif

#include "stdlib.h"
#include "stdio.h"
#include "fcntl.h"
Expand Down

0 comments on commit e3c9343

Please sign in to comment.