Skip to content

Commit

Permalink
ci: run setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 8, 2024
1 parent 2896569 commit bad1a12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
steps:
- name: Setup V
run: |
curl -Lo v_linux.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip
curl -LO https://github.com/vlang/v/releases/latest/download/v_linux.zip
unzip -o v_linux.zip
mv v ~/v
~/v/v symlink && v -showcc self && v doctor
- name: Setup Dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
Expand All @@ -25,7 +26,9 @@ jobs:
with:
path: vibe
- name: Setup V module
run: mkdir ~/.vmodules && mv vibe ~/.vmodules/vibe
run: |
mv vibe ~/.vmodules/vibe
~/.vmodules/vibe/curl/setup.vsh --silent
- name: Save cache
uses: actions/cache/save@v4
with:
Expand Down Expand Up @@ -62,7 +65,7 @@ jobs:
key: ${{ matrix.os }}-${{ github.sha }}
fail-on-cache-miss: true
- name: Setup V
run: ~/v/v symlink && v -showcc self && v doctor
run: ~/v/v symlink
- name: Setup Dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
Expand Down Expand Up @@ -100,7 +103,7 @@ jobs:
key: ubuntu-latest-${{ github.sha }}
fail-on-cache-miss: true
- name: Setup V
run: ~/v/v symlink && v -showcc self && v doctor
run: ~/v/v symlink
- name: Setup Dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ jobs:
steps:
- name: Setup V
run: |
curl -Lo ${{ matrix.v_archive }} https://github.com/vlang/v/releases/latest/download/${{ matrix.v_archive }}
curl -LO https://github.com/vlang/v/releases/latest/download/${{ matrix.v_archive }}
unzip -o ${{ matrix.v_archive }}
mv v ~/v
~/v/v symlink && v -showcc self && v doctor
- uses: actions/checkout@v4
with:
path: vibe
- name: Setup V module
run: mkdir ~/.vmodules && mv vibe ~/.vmodules/vibe
run: |
mv vibe ~/.vmodules/vibe
~/.vmodules/vibe/curl/setup.vsh --silent
- name: Save cache
uses: actions/cache/save@v4
with:
Expand Down Expand Up @@ -57,6 +60,6 @@ jobs:
key: ${{ matrix.os }}-${{ github.sha }}
fail-on-cache-miss: true
- name: Setup V
run: ~/v/v symlink && v -showcc self && v doctor
run: ~/v/v symlink
- name: Run tests
run: v ${{ env.VFLAGS }} test ~/.vmodules/vibe

0 comments on commit bad1a12

Please sign in to comment.