forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jorgen Lundman <[email protected]>
- Loading branch information
Showing
520 changed files
with
155,840 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: build_for_wsl | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Reclaim disk space | ||
run: | | ||
${{ github.workspace }}/.github/workflows/scripts/reclaim_disk_space.sh | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt sudo apt-get install -qq | ||
sudo apt-get clean | ||
- name: Autogen.sh | ||
run: | | ||
./autogen.sh | ||
- name: Configure | ||
run: | | ||
./configure --enable-debug --enable-debuginfo --enable-asan --enable-ubsan | ||
- name: Make | ||
run: | | ||
make --no-print-directory --silent native-deb-utils native-deb-kmod | ||
mv ../*.deb . | ||
rm ./openzfs-zfs-dkms*.deb ./openzfs-zfs-dracut*.deb | ||
- name: get files | ||
run: ls -Rla |
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
###################################################################################### | ||
# # | ||
# If you're looking for instructions on how to build this under windows go to # | ||
#https://github.com/openzfsonwindows/openzfs/blob/windows/module/os/windows/README.md# | ||
# # | ||
###################################################################################### | ||
|
||
name: "CodeQL windows" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
timeout-minutes: 120 | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: windows-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
#repository: openzfsonwindows/openzfs | ||
fetch-depth: 0 | ||
|
||
- name: Import signing certificate | ||
run: | | ||
$plaintextpwd = 'password1234' | ||
$pwd = ConvertTo-SecureString -String $plaintextpwd -Force -AsPlainText | ||
Import-PfxCertificate -FilePath ${{github.workspace}}/contrib/windows/TestCert/test_sign_cert_pass.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $pwd -Exportable | ||
- name: Checkout openssl | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: andrewc12/openssl # optional, default is ${{ github.repository }} | ||
path: openssl # optional | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
# Override language selection by uncommenting this and choosing your languages | ||
with: | ||
languages: cpp | ||
|
||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: cmake -G "Ninja" -B ${{github.workspace}}/out/build/x64-Debug ${{github.workspace}} -DOPENSSL_ROOT_DIR=${{github.workspace}}/openssl/ -DCRYPTO_STATIC_TEST=${{github.workspace}}/openssl/lib/VC/static/libcrypto64MTd.lib -DLIB_EAY_DEBUG=${{github.workspace}}/openssl/lib/VC/static/libcrypto64MTd.lib -DLIB_EAY_RELEASE=${{github.workspace}}/openssl/lib/VC/static/libcrypto64MT.lib -DOPENSSL_INCLUDE_DIR=${{github.workspace}}/openssl/include -DSSL_EAY_DEBUG=${{github.workspace}}/openssl/lib/VC/static/libssl64MTd.lib -DSSL_EAY_RELEASE=${{github.workspace}}/openssl/lib/VC/static/libssl64MT.lib | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}}/out/build/x64-Debug | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/out/build/x64-Debug | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
Oops, something went wrong.