Skip to content

Commit

Permalink
refactor build script to add --target and --host-march options
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnc committed May 16, 2022
1 parent 3b3f517 commit abe8c60
Show file tree
Hide file tree
Showing 6 changed files with 223 additions and 229 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,28 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt-get install -qq clang gcc-arm-none-eabi gcc-powerpc-linux-gnu \
llvm mingw-w64 scons
- name: Build with SCons
llvm scons
- name: Linux Host Build
run: |
scons --jobs "$(nproc)"
- name: Linux Host Build -march=penryn
run: |
scons --jobs "$(nproc)" --host-march=penryn
- name: Linux Host Build -march=nehalem
run: |
scons --jobs "$(nproc)" --host-march=nehalem
- name: Linux Host Build -march=skylake
run: |
scons --jobs "$(nproc)" --host-march=skylake
- name: Linux Host Build with Sanitizers
run: |
scons --jobs "$(nproc)" --sanitize
- name: arm-eabi Cross Build
run: |
scons --jobs "$(nproc)" --target=arm-eabi
- name: powerpc-linux Cross Build
run: |
scons --jobs "$(nproc)" --mingw --powerpc
scons --jobs "$(nproc)" --target=powerpc-linux
macos-test:
name: macOS Test
Expand All @@ -31,7 +49,7 @@ jobs:
brew install -q scons
- name: Build with SCons
run: |
scons --jobs "$(sysctl -n hw.ncpu)" --skip-arm-eabi
scons --jobs "$(sysctl -n hw.ncpu)"
windows-test:
name: Windows Test
Expand All @@ -44,7 +62,7 @@ jobs:
choco install --limit-output --no-progress diffutils
- name: Build with SCons
run: |
scons --jobs "$env:NUMBER_OF_PROCESSORS" --skip-arm-eabi
scons --jobs "$env:NUMBER_OF_PROCESSORS"
python-test:
name: Python Test (${{ matrix.os }}, python${{ matrix.python-version }})
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/.eggs/
/.sconsign.dblite
/build/
/dist/
/tags
*.egg-info/
__pycache__/
Loading

0 comments on commit abe8c60

Please sign in to comment.