-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from paulocoutinhox/update-version
update version
- Loading branch information
Showing
12 changed files
with
80 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: Linux ARM | ||
|
||
on: [push] | ||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- 'docs/**' | ||
- 'extras/images/**' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
# Download the CEF binary distribution for |platform| and |version| to |download_dir|. | ||
# The |CEF_ROOT| variable will be set in global scope pointing to the extracted location. | ||
# Visit https://cef-builds.spotifycdn.com/index.html for the list of supported platforms and versions. | ||
function(DownloadCEF platform version download_dir) | ||
# specify the binary distribution type and download directory | ||
set(CEF_DISTRIBUTION "cef_binary_${version}_${platform}") | ||
set(CEF_DOWNLOAD_DIR "${download_dir}") | ||
|
||
# the location where we expect the extracted binary distribution | ||
set(CEF_ROOT "${CEF_DOWNLOAD_DIR}/${CEF_DISTRIBUTION}" CACHE INTERNAL "CEF_ROOT") | ||
|
||
# download and/or extract the binary distribution if necessary | ||
if(NOT IS_DIRECTORY "${CEF_ROOT}") | ||
set(CEF_DOWNLOAD_FILENAME "${CEF_DISTRIBUTION}.tar.bz2") | ||
set(CEF_DOWNLOAD_PATH "${CEF_DOWNLOAD_DIR}/${CEF_DOWNLOAD_FILENAME}") | ||
|
||
if(NOT EXISTS "${CEF_DOWNLOAD_PATH}") | ||
set(CEF_DOWNLOAD_URL "https://cef-builds.spotifycdn.com/${CEF_DOWNLOAD_FILENAME}") | ||
string(REPLACE "+" "%2B" CEF_DOWNLOAD_URL_ESCAPED ${CEF_DOWNLOAD_URL}) | ||
|
||
# download the SHA1 hash for the binary distribution | ||
message(STATUS "Downloading ${CEF_DOWNLOAD_PATH}.sha1 from ${CEF_DOWNLOAD_URL_ESCAPED}...") | ||
|
||
file(DOWNLOAD "${CEF_DOWNLOAD_URL_ESCAPED}.sha1" "${CEF_DOWNLOAD_PATH}.sha1") | ||
file(READ "${CEF_DOWNLOAD_PATH}.sha1" CEF_SHA1) | ||
|
||
# download the binary distribution and verify the hash | ||
message(STATUS "Downloading ${CEF_DOWNLOAD_PATH}...") | ||
|
||
file( | ||
DOWNLOAD "${CEF_DOWNLOAD_URL_ESCAPED}" "${CEF_DOWNLOAD_PATH}" | ||
EXPECTED_HASH SHA1=${CEF_SHA1} | ||
SHOW_PROGRESS | ||
) | ||
endif() | ||
|
||
# extract the binary distribution | ||
message(STATUS "Extracting ${CEF_DOWNLOAD_PATH}...") | ||
execute_process( | ||
COMMAND ${CMAKE_COMMAND} -E tar xzf "${CEF_DOWNLOAD_DIR}/${CEF_DOWNLOAD_FILENAME}" | ||
WORKING_DIRECTORY ${CEF_DOWNLOAD_DIR} | ||
) | ||
endif() | ||
endfunction() | ||
# Download the CEF binary distribution for |platform| and |version| to |download_dir|. | ||
# The |CEF_ROOT| variable will be set in global scope pointing to the extracted location. | ||
# Visit https://cef-builds.spotifycdn.com/index.html for the list of supported platforms and versions. | ||
function(DownloadCEF platform version download_dir) | ||
# specify the binary distribution type and download directory | ||
set(CEF_DISTRIBUTION "cef_binary_${version}_${platform}") | ||
set(CEF_DOWNLOAD_DIR "${download_dir}") | ||
|
||
# the location where we expect the extracted binary distribution | ||
set(CEF_ROOT "${CEF_DOWNLOAD_DIR}/${CEF_DISTRIBUTION}" CACHE INTERNAL "CEF_ROOT") | ||
|
||
# download and/or extract the binary distribution if necessary | ||
if(NOT IS_DIRECTORY "${CEF_ROOT}") | ||
set(CEF_DOWNLOAD_FILENAME "${CEF_DISTRIBUTION}.tar.bz2") | ||
set(CEF_DOWNLOAD_PATH "${CEF_DOWNLOAD_DIR}/${CEF_DOWNLOAD_FILENAME}") | ||
|
||
if(NOT EXISTS "${CEF_DOWNLOAD_PATH}") | ||
set(CEF_DOWNLOAD_URL "https://cef-builds.spotifycdn.com/${CEF_DOWNLOAD_FILENAME}") | ||
string(REPLACE "+" "%2B" CEF_DOWNLOAD_URL_ESCAPED ${CEF_DOWNLOAD_URL}) | ||
|
||
# download the SHA1 hash for the binary distribution | ||
message(STATUS "Downloading ${CEF_DOWNLOAD_PATH}.sha1 from ${CEF_DOWNLOAD_URL_ESCAPED}...") | ||
|
||
file(DOWNLOAD "${CEF_DOWNLOAD_URL_ESCAPED}.sha1" "${CEF_DOWNLOAD_PATH}.sha1") | ||
file(READ "${CEF_DOWNLOAD_PATH}.sha1" CEF_SHA1) | ||
|
||
# download the binary distribution and verify the hash | ||
message(STATUS "Downloading ${CEF_DOWNLOAD_PATH}...") | ||
|
||
file( | ||
DOWNLOAD "${CEF_DOWNLOAD_URL_ESCAPED}" "${CEF_DOWNLOAD_PATH}" | ||
EXPECTED_HASH SHA1=${CEF_SHA1} | ||
SHOW_PROGRESS | ||
) | ||
endif() | ||
|
||
# extract the binary distribution | ||
message(STATUS "Extracting ${CEF_DOWNLOAD_PATH}...") | ||
execute_process( | ||
COMMAND ${CMAKE_COMMAND} -E tar xzf "${CEF_DOWNLOAD_DIR}/${CEF_DOWNLOAD_FILENAME}" | ||
WORKING_DIRECTORY ${CEF_DOWNLOAD_DIR} | ||
) | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes