Skip to content

Commit

Permalink
ci: use daily schedule cron.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Oct 13, 2023
1 parent 9e1b2f3 commit 2c0928b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/daily-release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Daily Release CI

# on:
# schedule:
# - cron: '0 0 * * *'

on: ["push", "pull_request"]
on:
schedule:
- cron: '0 0 * * *'

permissions:
contents: write
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/ubuntu_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@ jobs:
# Ref: https://github.com/actions/runner-images/tree/main/images/linux
name: Test
runs-on: ubuntu-latest
container:
image: kcllang/kcl-builder
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"
- name: Set up Go 1.18
- name: Set up Go 1.19
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: Delete rust cargo
run: rm -rf /root/.cargo/bin

# Prerequisite

- name: Install Python3 and LLVM
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y git wget curl make
sudo apt-get install python3 python3-pip -y
sudo apt-get install -y clang-12 lld-12
sudo ln -sf /usr/bin/clang-12 /usr/bin/clang
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit 2c0928b

Please sign in to comment.