Skip to content

Commit 51d3c7f

Browse files
committed
Upload artifacts after llvm build finished
1 parent e4bd40e commit 51d3c7f

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/llvm.yml

+15-6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ env:
1313
jobs:
1414
llvm-build:
1515
runs-on: macos-13
16+
defaults:
17+
run:
18+
working-directory: ./omnibus
19+
1620
steps:
1721
- name: Download Crystal source
1822
uses: actions/checkout@v4
@@ -26,10 +30,15 @@ jobs:
2630
sudo chown $(whoami) /opt/llvm/
2731
sudo mkdir -p /var/cache
2832
sudo chown $(whoami) /var/cache
29-
33+
34+
- name: Bundle
35+
run: bundle check || bundle install
36+
3037
- name: Build
31-
run: |
32-
cd omnibus
33-
bundle check || bundle install --binstubs
34-
bundle exec omnibus build llvm
35-
ls -la omnibus/pkg
38+
run: bundle exec omnibus build llvm --log-level debug --override use_git_caching:false
39+
40+
- uses: actions/upload-artifact@v3
41+
with:
42+
name: llvm-archive
43+
path: omnibus/pkg/*.tar.gz
44+
retention-days: 1

omnibus/config/software/tgz_package.rb

+4
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818

1919
command "tar czf #{destination}/#{tgz_name} #{transform} -C #{install_dir} .",
2020
env: {"COPYFILE_DISABLE" => "1"}
21+
22+
# NOTE: For environments not in English, git_cache function expected to see message `nothing to commit`.
23+
# It creates a empty file to commit something.
24+
command "date > #{install_dir}/tgz_package_done.log"
2125
end
2226
end

0 commit comments

Comments
 (0)