├── README.md ├── LICENSE └── .github └── workflows └── build.yml /README.md: -------------------------------------------------------------------------------- 1 | # occ-ai-dep-openssl 2 | Prebuilt OpenSSL binaries for usage in other projects 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 OCC AI: Open tools for Content Creators and Streamers 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: "Build" 2 | 3 | on: 4 | push: 5 | branches: 6 | - "main" 7 | tags: 8 | - "*" 9 | pull_request: 10 | branches: 11 | - "main" 12 | 13 | concurrency: 14 | group: "${{ github.workflow }}-${{ github.ref }}" 15 | cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}" 16 | 17 | env: 18 | OPENSSL_VERSION: "3.3.1" 19 | 20 | jobs: 21 | BuildMac: 22 | runs-on: "macos-13" 23 | 24 | strategy: 25 | matrix: 26 | config: 27 | - "Release" 28 | 29 | defaults: 30 | run: 31 | shell: "bash" 32 | 33 | steps: 34 | - name: "Get version" 35 | run: | 36 | if [[ $GITHUB_REF =~ ^refs/tags/ ]] 37 | then version="${GITHUB_REF#refs/tags/}" 38 | else version=main 39 | fi 40 | printf "version=%s" "$version" > "$GITHUB_OUTPUT" 41 | id: "get-version" 42 | 43 | - name: "Checkout" 44 | uses: "actions/checkout@v4" 45 | 46 | - name: "Run build-macos.sh" 47 | run: | 48 | chmod +x build-macos.sh 49 | ./build-macos.sh 50 | 51 | - name: "Upload artifact" 52 | uses: "actions/upload-artifact@v4" 53 | with: 54 | name: "openssl-macos-${{ matrix.config }}" 55 | path: "*.tar.gz" 56 | 57 | Release: 58 | runs-on: "ubuntu-22.04" 59 | 60 | if: "github.event_name == 'push' && contains(github.ref, 'refs/tags/')" 61 | 62 | needs: 63 | - "BuildMac" 64 | 65 | permissions: 66 | contents: "write" 67 | 68 | defaults: 69 | run: 70 | shell: "bash" 71 | 72 | steps: 73 | - name: "Get version" 74 | run: | 75 | if [[ $GITHUB_REF =~ ^refs/tags/ ]] 76 | then version="${GITHUB_REF#refs/tags/}" 77 | else version=main 78 | fi 79 | printf "version=%s" "$version" > "$GITHUB_OUTPUT" 80 | id: "get-version" 81 | 82 | - name: "Download build artifacts" 83 | uses: "actions/download-artifact@v4" 84 | 85 | - name: "Create Release" 86 | uses: "softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5" 87 | with: 88 | draft: true 89 | tag_name: "${{ steps.get-version.outputs.version }}" 90 | name: "${{ steps.get-version.outputs.version }}" 91 | files: | 92 | ${{ github.workspace }}/**/*.tar.gz 93 | ${{ github.workspace }}/**/*.zip --------------------------------------------------------------------------------