summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-09-19 14:54:59 +0100
committerGitHub <noreply@github.com>2024-09-19 13:54:59 +0000
commitdcc95112f7a53d94b355cd0cfaedbcee648bfe7f (patch)
treeb35b201503bf34bf4fe5093c477ff7a795495955 /.github/workflows/ci.yml
parente97f00f6f624d11ce7f37796bd65e52c473093b6 (diff)
ci: revert changed to canary uploads (#25733)
All these changes made CI fail consistently with random exit code 1 after successful upload.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml33
1 files changed, 6 insertions, 27 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 73eb7c085..1a10f4063 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,7 +33,7 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
with:
- fetch-depth: 50
+ fetch-depth: 5
submodules: false
if: github.event.pull_request.draft == true
- id: check
@@ -148,7 +148,7 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
with:
- fetch-depth: 50
+ fetch-depth: 5
submodules: false
if: '!(matrix.skip)'
- name: Clone submodule ./tests/util/std
@@ -486,14 +486,8 @@ jobs:
github.ref == 'refs/heads/main')
run: |-
gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
- latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt)
- git cat-file -e $latest_canary_hash
- if [ $? -eq 0 ]; then
- echo ${{ github.sha }} > canary-latest.txt
- gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt
- else
- echo "Skipping upload, because newer canary version is already available"
- fi
+ echo ${{ github.sha }} > canary-latest.txt
+ gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt
- name: Autobahn testsuite
if: |-
!(matrix.skip) && ((matrix.os == 'linux' && matrix.arch != 'aarch64') &&
@@ -683,15 +677,6 @@ jobs:
- build
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
steps:
- - name: Configure git
- run: |-
- git config --global core.symlinks true
- git config --global fetch.parallel 32
- - name: Clone repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 50
- submodules: false
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
@@ -705,11 +690,5 @@ jobs:
project_id: denoland
- name: Upload canary version file to dl.deno.land
run: |-
- latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt)
- git cat-file -e $latest_canary_hash
- if [ $? -eq 0]; then
- echo ${{ github.sha }} > canary-latest.txt
- gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
- else
- echo "Skipping upload, because newer canary version is already available"
- fi
+ echo ${{ github.sha }} > canary-latest.txt
+ gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt