Skip to content

ci: merge staging to master #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b1a8d0e
chore: lintfixed
CMCDragonkai May 17, 2023
50866d9
fix: all scripts have the executable bit set
CMCDragonkai May 17, 2023
52d4748
fix: added nasm to `./scripts/choco-install.ps1`
CMCDragonkai May 17, 2023
75fc294
fix: enabled `brew update` in order to get the latest rust for macos …
CMCDragonkai May 17, 2023
63faaa3
chore: updated `@napi-rs/cli` to `2.15.2`
CMCDragonkai May 17, 2023
a6d30f5
fix: added clang to `scripts/choco-install.ps1`
CMCDragonkai May 17, 2023
99dfde8
fix: added `RUST_BACKTRACE` to env variables for compilation
CMCDragonkai May 17, 2023
87a93f0
fix: changed `npm bin` to `$(npm root)/.bin` in `.gitlab-ci.yml`
CMCDragonkai May 17, 2023
6749537
fix: cmake is necessary for macos
CMCDragonkai May 17, 2023
df0b5be
fix: brought back `napi.name` property in `package.json`, this determ…
CMCDragonkai May 17, 2023
3c618b7
fix: build separate arm64 and x64 binaries for macos, and do not both…
CMCDragonkai May 17, 2023
53176bb
fix: macos now overrides the PATH with the `rustup` installed rust an…
CMCDragonkai May 17, 2023
7fed717
feat: write `README.md` for native packages
CMCDragonkai May 18, 2023
0957b5c
chore: document that `README.md` is also produced in `scripts/prepubl…
CMCDragonkai May 18, 2023
9dfb7d1
docs: cleaned up `README.md`
CMCDragonkai May 18, 2023
ac874bb
fix: `tlsConfig` is required for `QUICServer` config
tegefaulkes May 18, 2023
a023bc0
tests: reduced times for longest running tests
tegefaulkes May 18, 2023
5060ac7
deps: updated `@types/node` to `^18.15.0`
CMCDragonkai May 19, 2023
896e86f
fix: general fixes for gitlab ci
tegefaulkes May 19, 2023
c8dbf00
fix: bench connection failure on mac
tegefaulkes May 22, 2023
3847ff9
fix: fixing `package-lock.json` being out of sync with `package.json`
tegefaulkes May 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ build:linux:
variables:
# Only x64 architecture is needed
npm_config_arch: "x64"
RUST_BACKTRACE: "1"
script:
- >
nix-shell --arg ci true --run $'
Expand Down Expand Up @@ -168,18 +169,20 @@ build:linux:
build:windows:
stage: build
needs: []
allow_failure: true
tags:
- windows
variables:
# Only x64 architecture is needed
npm_config_arch: "x64"
RUST_BACKTRACE: "1"
before_script:
- mkdir -Force "$CI_PROJECT_DIR/tmp"
script:
- ./scripts/choco-install.ps1
- refreshenv
- npm install --ignore-scripts
- $env:Path = "$(npm bin);" + $env:Path
- $env:Path = "$(npm root)\.bin;" + $env:Path
- npm run prebuild --verbose -- --production
- npm test -- --ci --coverage
- npm run bench
Expand Down Expand Up @@ -208,14 +211,19 @@ build:macos:
image: macos-11-xcode-12
variables:
# Produce universal binary
npm_config_arch: 'x64+arm64'
RUST_BACKTRACE: "1"
script:
- eval "$(brew shellenv)"
- ./scripts/brew-install.sh
- hash -r
- npm install --ignore-scripts
- export PATH="$(npm bin):$PATH"
- npm run prebuild --verbose -- --production
- export PATH="$(npm root)/.bin:$PATH"
# Gitlab MacOS already has rust installed
# This will override the system installed rust
- export PATH="$HOME/.cargo/bin:$PATH"
# Build x64 and arm64 separately
- npm run prebuild --verbose -- --arch x64 --production
- npm run prebuild --verbose -- --arch arm64 --production
- npm test -- --ci --coverage
- npm run bench
artifacts:
Expand All @@ -240,7 +248,7 @@ build:prerelease:
needs:
- build:dist
- build:linux
- build:windows
# - build:windows
- build:macos
# Don't interrupt publishing job
interruptible: false
Expand Down Expand Up @@ -325,7 +333,7 @@ release:distribution:
needs:
- build:dist
- build:linux
- build:windows
# - build:windows
- build:macos
- integration:merge
# Don't interrupt publishing job
Expand Down
Loading