From f1244bd7f123b60edb9df821646e3734133b7c3f Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 15 Aug 2021 09:21:57 +0300 Subject: [PATCH] ci: do not upload fast.v results --- .github/workflows/ci.yml | 2 +- cmd/tools/fast/fast.v | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57861f8cd1..e9ece57fbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,7 @@ jobs: run: | ./v tutorials/building_a_simple_web_blog_with_vweb/code/blog - name: Build cmd/tools/fast - run: cd cmd/tools/fast && ../../../v fast.v && ./fast + run: cd cmd/tools/fast && ../../../v fast.v && ./fast -noupload ubuntu-tcc-boehm-gc: needs: no-scheduling diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 6a91855421..0d95c849d4 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -109,12 +109,13 @@ fn main() { // exec('git checkout master') // os.write_file('last_commit.txt', commits[commits.len - 1]) ? // Upload the result to github pages - os.chdir('website') - os.execute_or_exit('git checkout gh-pages') - os.cp('../index.html', 'index.html') ? - os.system('git commit -am "update benchmark"') - os.system('git push origin gh-pages') - os.chdir('..') + if !os.args.contains('-noupload') { + os.chdir('website') + os.execute_or_exit('git checkout gh-pages') + os.cp('../index.html', 'index.html') ? + os.system('git commit -am "update benchmark"') + os.system('git push origin gh-pages') + } } fn exec(s string) string {