Skip to content

Commit

Permalink
set node16 handler for run-vcpkg@v7 (#167)
Browse files Browse the repository at this point in the history
* set node16 handler for run-vcpkg@v7

* more recent vcpkg: 6ca56aeb457f033d344a7106cb3f9f1abf8f4e98

* more node16 support by bumping actions used in validation workflow

* bump @actions/core to get past warning: "The `save-state` command is deprecated and will be disabled soon."

* update deps for node&Co

* fix build error for unit test
  • Loading branch information
lukka authored Oct 25, 2022
1 parent caea17d commit 55dacfc
Show file tree
Hide file tree
Showing 8 changed files with 9,792 additions and 15,901 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: '16.x'
# How to consume GitHub packages, from this message (!): https://github.community/t/download-from-github-package-registry-without-authentication/14407/35
# Inspired from here: https://github.com/jcansdale-test/npmrc-configurations/blob/master/.github/workflows/blank.yml
- name: Authenticate to GitHub Packages
Expand All @@ -43,7 +43,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: checkout this action
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
submodules: true

Expand All @@ -53,7 +53,7 @@ jobs:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgArguments: sqlite3
vcpkgGitUrl: 'https://github.com/microsoft/vcpkg.git'
vcpkgGitCommitId: 'a8ac047e6c40b806ac89ac4d7281d45d7c0aaf29'
vcpkgGitCommitId: '6ca56aeb457f033d344a7106cb3f9f1abf8f4e98'
useShell: true

- name: basic test for run-vcpkg with setupOnly
Expand All @@ -62,7 +62,7 @@ jobs:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgArguments: sqlite3
vcpkgGitUrl: 'https://github.com/microsoft/vcpkg.git'
vcpkgGitCommitId: 'a8ac047e6c40b806ac89ac4d7281d45d7c0aaf29'
vcpkgGitCommitId: '6ca56aeb457f033d344a7106cb3f9f1abf8f4e98'
useShell: true
setupOnly: true

Expand All @@ -72,5 +72,5 @@ jobs:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgArguments: '--overlay-ports=../__tests__/assets/1 sqlite3 @../__tests__/assets/tempDirectory/response_file1 --overlay-ports=../__tests__/assets/subdir/2 @../__tests__/assets/response_file2'
vcpkgGitUrl: 'https://github.com/microsoft/vcpkg.git'
vcpkgGitCommitId: 'a8ac047e6c40b806ac89ac4d7281d45d7c0aaf29'
vcpkgGitCommitId: '6ca56aeb457f033d344a7106cb3f9f1abf8f4e98'
useShell: true
2 changes: 1 addition & 1 deletion __tests__/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jest.mock("@lukka/run-vcpkg-lib");
function createDir(path: string) {
try {
fs.mkdirSync(path, { recursive: true });
} catch (err) {
} catch (err: any) {
if (err.code !== 'EEXIST') {
throw err
}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ inputs:
description: "Specifies a semicolon separated list of regular expressions that are used to identify log file paths in the workflow output. A regular expression must have a single capturing group, that is a single pair of parenthesis such as 'See also (.+.log)'. When a match occurs, the content of the file is written into the workflow output for disclosing its content to the user. The default regular expressions are for CMake's and vcpkg's log files."

runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
post: 'dist/post/index.js'
post-if: 'success()'
Expand Down
Loading

0 comments on commit 55dacfc

Please sign in to comment.