-
Notifications
You must be signed in to change notification settings - Fork 139
Make use of shared workflows #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,13 +29,6 @@ jobs: | |
| validate: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GOVER: 1.21 | ||
| GOOS: linux | ||
| GOARCH: amd64 | ||
| GOPROXY: https://proxy.golang.org | ||
| DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh | ||
| DAPR_CLI_REF: ${{ github.event.inputs.daprcli_commit }} | ||
| DAPR_REF: ${{ github.event.inputs.daprdapr_commit }} | ||
| CHECKOUT_REPO: ${{ github.repository }} | ||
| CHECKOUT_REF: ${{ github.ref }} | ||
|
|
||
|
|
@@ -50,7 +43,6 @@ jobs: | |
| if [ ${{ github.event.client_payload.command }} = "ok-to-test" ]; then | ||
| echo "CHECKOUT_REPO=${{ github.event.client_payload.pull_head_repo }}" >> $GITHUB_ENV | ||
| echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV | ||
| echo "DAPR_REF=master" >> $GITHUB_ENV | ||
| fi | ||
|
acroca marked this conversation as resolved.
|
||
|
|
||
| - name: Check out code onto GOPATH | ||
|
|
@@ -96,61 +88,21 @@ jobs: | |
| python -m pip install --upgrade pip | ||
| pip install setuptools wheel twine tox | ||
| - name: Set up Dapr CLI | ||
| run: | | ||
| wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_${{ env.GOOS }}_${{ env.GOARCH }}.tar.gz" -O /tmp/dapr.tar.gz | ||
| sudo tar xzf /tmp/dapr.tar.gz -C /usr/local/bin dapr | ||
| dapr --version | ||
| - name: Set up Go ${{ env.GOVER }} | ||
| if: env.DAPR_REF != '' || env.DAPR_CLI_REF != '' | ||
| uses: actions/setup-go@v6 | ||
| uses: dapr/.github/.github/actions/setup-dapr-cli@main | ||
| with: | ||
| commit: ${{ github.event.inputs.daprcli_commit }} | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Set up Dapr runtime | ||
| uses: dapr/.github/.github/actions/setup-dapr-runtime@main | ||
|
acroca marked this conversation as resolved.
|
||
| with: | ||
| go-version: ${{ env.GOVER }} | ||
| commit: ${{ github.event.inputs.daprdapr_commit }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this daprdapr_commit?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's the name of the input, I didn't change it in this commit, I guess it's because it references the |
||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Set up Llama | ||
| run: | | ||
| curl -fsSL https://ollama.com/install.sh | sh | ||
| nohup ollama serve & | ||
| sleep 10 | ||
| ollama pull llama3.2:latest | ||
| - name: Checkout Dapr CLI repo to override dapr command. | ||
| uses: actions/checkout@v6 | ||
| if: env.DAPR_CLI_REF != '' | ||
| with: | ||
| repository: dapr/cli | ||
| ref: ${{ env.DAPR_CLI_REF }} | ||
| path: cli | ||
| - name: Checkout Dapr repo to override daprd. | ||
| uses: actions/checkout@v6 | ||
| if: env.DAPR_REF != '' | ||
| with: | ||
| repository: dapr/dapr | ||
| ref: ${{ env.DAPR_REF }} | ||
| path: dapr_runtime | ||
| - name: Build and override dapr cli with referenced commit. | ||
| if: env.DAPR_CLI_REF != '' | ||
| run: | | ||
| cd cli | ||
| make | ||
| sudo cp dist/linux_amd64/release/dapr /usr/local/bin/dapr | ||
| cd .. | ||
| - name: Initialize Dapr runtime ${{ env.DAPR_RUNTIME_VER }} | ||
| run: | | ||
| dapr uninstall --all | ||
| dapr init --runtime-version ${{ env.DAPR_RUNTIME_VER }} | ||
| - name: Build and override daprd with referenced commit. | ||
| if: env.DAPR_REF != '' | ||
| run: | | ||
| cd dapr_runtime | ||
| make | ||
| mkdir -p $HOME/.dapr/bin/ | ||
| cp dist/linux_amd64/release/daprd $HOME/.dapr/bin/daprd | ||
| cd .. | ||
| - name: Override placement service. | ||
| if: env.DAPR_REF != '' | ||
| run: | | ||
| docker stop dapr_placement | ||
| cd dapr_runtime | ||
| ./dist/linux_amd64/release/placement --healthz-port 9091 & | ||
| cd .. | ||
| - name: Check Examples | ||
| run: | | ||
| tox -e examples | ||
Uh oh!
There was an error while loading. Please reload this page.