-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from TextsHQ/conan/windows_build_fix
ci: Fix Windows build and warnings
- Loading branch information
Showing
2 changed files
with
15 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,58 +55,49 @@ jobs: | |
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Configure git for private repos | ||
env: | ||
TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
git config --global url."https://${TOKEN}:[email protected]/".insteadOf "https://github.com/" | ||
git config --global url."https://${{ secrets.GH_TOKEN }}:[email protected]/".insteadOf "https://github.com/" | ||
- name: Cache cargo registry | ||
uses: actions/cache@v2 | ||
- name: Cache cargo | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cargo/registry | ||
key: cargo-registry-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} | ||
key: cargo-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/bin | ||
target | ||
- name: Cache cargo bin | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cargo/bin | ||
key: cargo-bin-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} | ||
|
||
- name: Cache cargo build | ||
uses: actions/cache@v2 | ||
with: | ||
path: target | ||
key: cargo-build-target-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} | ||
|
||
- name: Install latest Rust stable | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
override: true | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --ignore-scripts | ||
|
||
- name: Build | ||
run: yarn build --target=${{ matrix.target }} | ||
|
||
# Until GH action adds M1 runners, can't run aarch64 libs | ||
# Until GH action adds M1 runners, can't run aarch64 libs | ||
- name: Test | ||
if: ${{ matrix.architecture == 'x64' }} | ||
run: yarn test | ||
|
||
- name: Publish | ||
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} | ||
run: | | ||
yarn package --target_arch=${{ matrix.architecture }} | ||
yarn upload-binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters