Skip to content

Commit

Permalink
update C/C++ compile CI
Browse files Browse the repository at this point in the history
  • Loading branch information
diamant3 committed Oct 2, 2023
1 parent c01d170 commit fdbab6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/compile_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
run: |
mkdir target
echo "Compiling C for Intel Macos-X"
gcc c/main.c -target x86_64-apple-macos12 -o target/wrongsecrets-c
gcc c/advanced/advanced.c -target x86_64-apple-macos12 -o target/wrongsecrets-advanced-c
(cd c && make CFLAGS+='-target x86_64-apple-macos12' OUT='../target/wrongsecrets-c')
(cd c/advanced && make CFLAGS+='-target x86_64-apple-macos12' OUT='../target/wrongsecrets-advanced-c')
echo "Compiling C for ARM Macos-X"
gcc c/main.c -target arm64-apple-macos12 -o target/wrongsecrets-c-arm
gcc c/advanced/advanced.c -target arm64-apple-macos12 -o target/wrongsecrets-advanced-c-arm
(cd c && make CFLAGS+='-target arm64-apple-macos12' OUT='../target/wrongsecrets-c-arm')
(cd c/advanced && make CFLAGS+='-target arm64-apple-macos12' OUT='../target/wrongsecrets-advanced-c-arm')
- name: Uploading C executables
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compile_cplus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
run: |
mkdir target
echo "Compiling CPlus for Intel Macos-X"
g++ cplus/main.cpp -target x86_64-apple-macos12 -o target/wrongsecrets-cplus
(cd cplus && make CXXFLAGS+='-target x86_64-apple-macos12' OUT='../target/wrongsecrets-cplus')
echo "Compiling CPlus for ARM Macos-X"
g++ cplus/main.cpp -target arm64-apple-macos12 -o target/wrongsecrets-cplus-arm
(cd cplus && make CXXFLAGS+='-target arm64-apple-macos12' OUT='../target/wrongsecrets-cplus-arm')
- name: Uploading executables
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit fdbab6f

Please sign in to comment.