Skip to content

Commit

Permalink
ci: speed up windows build and add windows to release
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed May 6, 2024
1 parent bd130b9 commit 89cd0a7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,13 @@ jobs:
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install wasm target
run: rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
- uses: taiki-e/cache-cargo-install-action@5b024fe3a0a2c7f2aaff0e47871acf0d14b07207 # ratchet:taiki-e/cache-cargo-install-action@v1
with:
tool: wasm-bindgen-cli
- uses: MinoruSekine/setup-scoop@6435f41324fa55988d8ce5b06bae5cafc75fe045 # ratchet:MinoruSekine/setup-scoop@v4
- name: Install buf
run: scoop install buf
- run: make proto
- name: Check CI scripts
run: make rust_build
run: cargo build
sqlfluff-template:
name: Lint template with SQLFluff
runs-on: ubuntu-latest
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,31 @@ jobs:
uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # ratchet:softprops/action-gh-release@v2.0.4
with:
files: 'quary-*'
upload_cli_release_windows:
runs-on: windows-latest
needs:
- check-versions-match
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # ratchet:actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
- uses: MinoruSekine/setup-scoop@6435f41324fa55988d8ce5b06bae5cafc75fe045 # ratchet:MinoruSekine/setup-scoop@v4
- name: Install buf
run: scoop install buf
- run: make proto
- run: cargo build --release
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Package as archive
run: |
cd target/release
zip -j quary-${{ env.VERSION }}-windows-x86_64-gnu.zip quary.exe
mv quary-${{ env.VERSION }}-windows-x86_64-gnu.zip ../../
- name: Upload Release Asset
uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # ratchet:softprops/action-gh-release@v2.0.4
with:
files: 'quary-*'

0 comments on commit 89cd0a7

Please sign in to comment.