(bugfix) proton.yml: remove order by in the incremental_select #1
Workflow file for this run
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
name: Build Dev | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- main | |
env: | |
GOPRIVATE: github.com/slingdata-io/* | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: [self-hosted, linux, ubuntu-16] | |
timeout-minutes: 5 | |
outputs: | |
VERSION: ${{ steps.get_version.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up GoLang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.22" | |
cache: false | |
- name: Get the version | |
id: get_version | |
run: | | |
VERSION="${GITHUB_REF##*/}.dev" | |
DATE=$(date +%F) | |
VERSION=$(echo $VERSION | sed 's/v//') | |
VERSION="$VERSION/$DATE" | |
echo "VERSION -> $VERSION" | |
echo ::set-output name=VERSION::$VERSION | |
- id: step1 | |
name: Build | |
env: | |
VERSION: ${{ steps.get_version.outputs.VERSION }} | |
run: | | |
bash scripts/build.sh | |
echo ::set-output name=version::$VERSION | |
release: | |
if: "! (contains(github.event.inputs.build_only, 'true'))" | |
needs: [build] | |
runs-on: ${{ matrix.runner }} | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
# runner: [self-hosted-mac, self-hosted-linux, self-hosted-windows] | |
# runner: [macos-latest, ubuntu-20.04, windows-latest] | |
runner: [self-hosted-mac, ubuntu-16, self-hosted-windows] | |
# runner: [self-hosted-mac, ubuntu-16] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 0 | |
- name: Dump context | |
env: | |
JOB_CONTEXT: ${{ toJson(job) }} | |
MATRIX_CONTEXT: ${{ toJson(matrix) }} | |
RUNNER_CONTEXT: ${{ toJson(runner) }} | |
run: | | |
echo "JOB_CONTEXT -> $JOB_CONTEXT" | |
echo "MATRIX_CONTEXT -> $MATRIX_CONTEXT" | |
echo "RUNNER_CONTEXT -> $RUNNER_CONTEXT" | |
echo "VERSION -> $VERSION" | |
- name: Set up GoLang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.22" | |
cache: false | |
- name: Load Secrets | |
uses: flarco/infisical-action@v2 | |
with: | |
version: 0.28.1 | |
client_id: ${{ secrets.INFISICAL_CLIENT_ID }} | |
client_secret: ${{ secrets.INFISICAL_CLIENT_SECRET }} | |
use_system_python: true | |
- name: Build Sling (Linux) | |
env: | |
VERSION: ${{ needs.build.outputs.VERSION }} | |
if: runner.os == 'linux' | |
run: | | |
# Prep | |
bash scripts/ci/prep.linux.sh | |
# build | |
bash scripts/ci/build.linux.sh $VERSION | |
- name: Build Sling (Mac) | |
env: | |
VERSION: ${{ needs.build.outputs.VERSION }} | |
if: runner.os == 'macOS' | |
run: | | |
# Prep | |
bash scripts/ci/prep.mac.sh | |
# build | |
bash scripts/ci/build.mac.sh $VERSION | |
- name: Configure Pagefile (Windows) | |
if: runner.os == 'windows' | |
uses: al-cheb/[email protected] | |
with: | |
minimum-size: 16GB | |
maximum-size: 16GB | |
disk-root: "C:" | |
- name: Build Sling (Windows) | |
env: | |
VERSION: ${{ needs.build.outputs.VERSION }} | |
if: runner.os == 'windows' | |
shell: pwsh | |
run: | | |
$ErrorActionPreference = "Stop" | |
# Prep | |
.\scripts\ci\prep.win.ps1 | |
# Build | |
.\scripts\ci\build.win.ps1 $env:VERSION | |
- name: Upload to R2 (Windows) | |
if: runner.os == 'windows' | |
shell: pwsh | |
run: .\mc.exe cp sling_windows_amd64.tar.gz R2/sling-public/dev/latest/ | |
- name: Upload to R2 (Unix) | |
if: runner.os != 'windows' | |
run: mc cp *.tar.gz R2/sling-public/dev/latest/ | |
- name: Purge Cache | |
if: runner.os == 'linux' | |
run: | | |
curl 'https://api.cloudflare.com/client/v4/zones/c4605fd9cf8ddcd00671858bbd16ffac/purge_cache' \ | |
-H "X-Auth-Key: $CF_AUTH_KEY" \ | |
-H "X-Auth-Email: $CF_AUTH_EMAIL" \ | |
--data-raw '{"files":["https://f.slingdata.io/dev/latest/sling_linux_amd64.tar.gz","https://f.slingdata.io/dev/latest/sling_linux_arm64.tar.gz","https://f.slingdata.io/dev/latest/sling_darwin_amd64.tar.gz","https://f.slingdata.io/dev/latest/sling_darwin_arm64.tar.gz","https://f.slingdata.io/dev/latest/sling_windows_amd64.tar.gz"]}' |