skip release builds #2340
This file contains hidden or 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
| name: skip release builds | |
| on: | |
| push: | |
| #branches: [ main ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 3 * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| skip-release: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout skipstone | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: skiptools/skipstone | |
| path: skipstone | |
| ref: main | |
| submodules: true | |
| - name: Checkout skip | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: skiptools/skip | |
| path: skip | |
| # need to fetch tags so we know the most recent version | |
| fetch-tags: true | |
| # needed or else trigger from tag will fail | |
| # https://github.com/actions/checkout/issues/1467 | |
| ref: ${{ github.ref }} | |
| - name: Checkout homebrew-skip | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: skiptools/homebrew-skip | |
| path: homebrew-skip | |
| - name: Install Dependencies | |
| run: | | |
| brew install tree swiftly | |
| swiftly init --assume-yes --no-modify-profile --skip-install | |
| - name: Setup Static Linux SDK | |
| run: | | |
| SWIFT_VERSION=6.2.3 | |
| swiftly install --use ${SWIFT_VERSION} | |
| curl -fsSL -o swift-static-linux-sdk.tar.gz https://download.swift.org/swift-${SWIFT_VERSION}-release/static-sdk/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz | |
| swift sdk install swift-static-linux-sdk.tar.gz | |
| swift sdk list | |
| # this version will be used by the release script for | |
| # building the static Linux version | |
| echo "SWIFT_VERSION=${SWIFT_VERSION}" >> $GITHUB_ENV | |
| - name: Build Skip Release | |
| working-directory: skipstone | |
| run: ./scripts/release_skip.sh | |
| env: | |
| DRY_RUN: 1 | |