-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.4 KB
/
Copy pathversion-check.yml
File metadata and controls
44 lines (42 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Version Check
on:
push:
branches: [main]
paths:
- '.github/workflows/version-check.yml'
jobs:
check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update 1.97.1
rustup default 1.97.1
rustup component add rustfmt clippy
- name: Download ripgrep
run: |
curl -sL "https://github.com/BurntSushi/ripgrep/releases/download/15.0.0/ripgrep-15.0.0-aarch64-apple-darwin.tar.gz" -o /tmp/rg.tar.gz
tar -xzf /tmp/rg.tar.gz -C /tmp
cp /tmp/ripgrep-15.0.0-aarch64-apple-darwin/rg /tmp/rg
chmod +x /tmp/rg
- name: Show versions
run: |
rustc --version
cargo --version
- name: Test native build (aarch64-apple-darwin)
env:
CCODE_TOOLS_BUNDLE_RG_PATH: /tmp/rg
CCODE_SHELL_BUNDLE_RG_PATH: /tmp/rg
run: |
set -o pipefail
cargo build --release -p ccode-cli --target aarch64-apple-darwin 2>&1 | tail -80
echo "EXIT: ${PIPESTATUS[0]}"
- name: Test cross build (x86_64-apple-darwin)
env:
CCODE_TOOLS_BUNDLE_RG_PATH: /tmp/rg
CCODE_SHELL_BUNDLE_RG_PATH: /tmp/rg
run: |
set -o pipefail
cargo build --release -p ccode-cli --target x86_64-apple-darwin 2>&1 | tail -40
echo "EXIT: ${PIPESTATUS[0]}"