Skip to content

Commit

Permalink
ga build
Browse files Browse the repository at this point in the history
  • Loading branch information
4kimov committed Dec 21, 2024
1 parent 89acf66 commit ae6a659
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ jobs:
if: matrix.os == 'macos-latest'
run: brew install icu4c

- name: Setup vcpkg (Windows)
if: matrix.os == 'windows-latest'
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: '501db0f17ef6df184fcdbfbe0f87cde2313b6ab1'
runVcpkgInstall: true

- name: Set VCPKG_ROOT
run: echo "VCPKG_ROOT=${{ github.workspace }}/vcpkg" >> $GITHUB_ENV

- name: Install ICU (Windows)
if: matrix.os == 'windows-latest'
run: |
${{ github.workspace }}/vcpkg/vcpkg install icu:x64-windows
echo "${{ github.workspace }}/vcpkg/installed/x64-windows/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
run: ${{ github.workspace }}/vcpkg/vcpkg install icu:x64-windows

- name: Set VCPKG_ROOT (Windows)
- name: Set up ICU path (Windows)
if: matrix.os == 'windows-latest'
run: echo "VCPKG_ROOT=${{ github.workspace }}/vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
run: echo "${{ github.workspace }}/vcpkg/installed/x64-windows/bin" >> $env:GITHUB_PATH

- name: Set up cargo cache
uses: actions/cache@v3
Expand Down Expand Up @@ -100,4 +100,4 @@ jobs:
override: true

- name: Install ICU
run: sudo apt-get install -y libicu-dev
run: sudo apt-get install -y libicu-dev
8 changes: 8 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "pg-sqids",
"version-string": "0.1.0",
"dependencies": [
"icu"
]
}

0 comments on commit ae6a659

Please sign in to comment.