Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Oct 4, 2024
1 parent af559fe commit 7feda1b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
53 changes: 39 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ jobs:
submodules: true
- name: Free up some space
run: |
sudo rm --recursive --force \
'/opt/'* \
'/usr/local/lib/android' \
'/usr/local/share/vcpkg' \
'/usr/share/java'
sudo apt purge --auto-remove \
sudo apt purge --allow-remove-essential --auto-remove \
'*apache2*' \
'*docker*' \
'*dotnet*' \
'*firefox*' \
'*google*' \
'*gstreamer*' \
'*jdk*' \
'*nginx*' \
'*php*' \
Expand All @@ -36,9 +32,16 @@ jobs:
'auto*' \
'azure-cli' \
'bind9*' \
'binutils*' \
'build-essential' \
'clang*' \
'container*' \
'fonts*' \
'gcc-9' \
'gcc-10' \
'gcc-11' \
'gcc-12' \
'gh' \
'glib*' \
'libmono*' \
'lld*' \
Expand All @@ -47,17 +50,39 @@ jobs:
'mysql*' \
'postgresql*' \
'powershell' \
'vim*' \
'x11*' \
'xdg*'
- name: Increase swap space
run: |
sudo swapoff -a
sudo fallocate -l '5G' '/mnt/swapfile'
sudo mkswap '/mnt/swapfile'
sudo swapon '/mnt/swapfile'
'xdg*' > '/dev/null'
sudo rm --recursive --force \
"${HOME}/.cargo" \
"${HOME}/.rustup" \
"${HOME}/linuxbrew" \
'/etc/apt' \
'/etc/cni/net.d' \
'/etc/docker' \
'/etc/mono' \
'/etc/mysql' \
'/lib/tmpfiles.d' \
'/opt/'* \
'/opt/az' \
'/usr/lib/heroku' \
'/usr/lib/mono' \
'/usr/libexec/docker' \
'/usr/local/lib/android' \
'/usr/local/lib/android' \
'/usr/local/share/man' \
'/usr/local/share/vcpkg' \
'/usr/share/fonts' \
'/usr/share/icons' \
'/usr/share/java' \
'/usr/share/php' \
'/usr/share/swift' \
'/var/lib/apache2' \
'/var/lib/gems' \
'/var/log'
- name: Install required dependencies
run: |
sudo apt-get install 'libxml2-dev'
sudo apt-get install 'libxml2-dev' 'binutils'
- name: Setup Linux cross-compiler
run: |
declare -r SPHYNX_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Sphynx/releases/latest')")"
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ set(CURL_DISABLE_COOKIES OFF)
set(CURL_DISABLE_HSTS ON)
set(CURL_DISABLE_HTTP_AUTH ON)
set(CURL_DISABLE_NETRC ON)
set(CURL_DISABLE_WEBSOCKETS ON)
set(USE_LIBIDN2 OFF)
set(ENABLE_UNIX_SOCKETS OFF)
set(CURL_USE_LIBSSH2 OFF)
Expand Down Expand Up @@ -424,7 +425,7 @@ if (HAIKU)
)
endif()

set(BEARSSL_INCLUDE_DIRS submodules/bearssl/inc)
set(BEARSSL_INCLUDE_DIR submodules/bearssl/inc)
set(BEARSSL_LIBRARY $<TARGET_FILE:bearssl>)

add_subdirectory(submodules/curl EXCLUDE_FROM_ALL)
Expand Down

0 comments on commit 7feda1b

Please sign in to comment.