Skip to content

chore: update ci workflow #25

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 42 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0245bc9
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Sep 7, 2023
7a2778d
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Sep 20, 2023
6056e26
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Sep 22, 2023
2ad0e89
ci: 🔄 created local '.github/actions/' from remote 'actions'
Sep 22, 2023
bbdc982
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 20, 2023
0aaa0d0
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 20, 2023
7ab5b39
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 20, 2023
9e0031b
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 28, 2023
2daa1dd
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 29, 2023
a329d78
Merge branch 'HdrHistogram:main' into main
hassila Dec 18, 2023
8e12978
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jan 4, 2024
e0ea4b0
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jan 4, 2024
be87bdf
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jan 10, 2024
9f1cb7a
ci: 🔄 synced local '.swiftlint.yml' with remote 'dotfiles/swiftlint.yml'
Jan 10, 2024
2ed9742
ci: 🔄 created local '.swiftlint_base.yml' from remote 'dotfiles/swift…
Jan 10, 2024
9ff6627
ci: 🔄 created local '.swiftlint_refinement.yml' from remote 'dotfiles…
Jan 10, 2024
6e9f6da
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jan 24, 2024
b1a007f
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Feb 20, 2024
5286190
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Feb 21, 2024
070348a
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Mar 7, 2024
663c713
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Mar 25, 2024
77d63a9
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
May 22, 2024
a4e22e4
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jun 11, 2024
a8aa3a4
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jul 23, 2024
2f5a7ae
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jul 24, 2024
5742a04
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Jul 25, 2024
15807b9
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Oct 1, 2024
86a7709
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Oct 2, 2024
5446e2b
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Oct 2, 2024
c69b032
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Oct 14, 2024
9d66f85
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Oct 14, 2024
9a339bd
Merge branch 'HdrHistogram:main' into main
freef4ll Nov 7, 2024
6a34372
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 7, 2024
693d61e
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 7, 2024
e98f9e0
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
Nov 7, 2024
7842dca
Merge branch 'HdrHistogram:main' into main
freef4ll Nov 7, 2024
9386a50
remove Consul start from workflows
dimlio Nov 8, 2024
edfb762
remove links to ordo repos
dimlio Nov 8, 2024
3272dc9
run tests on release build for linux
dimlio Nov 8, 2024
483907e
class -> static to make swiftlint happy
dimlio Nov 8, 2024
2ec2ff0
simplify workflows
dimlio Nov 8, 2024
2bb7cf6
no benchmarks
dimlio Nov 8, 2024
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
10 changes: 5 additions & 5 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
semantic-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -52,14 +52,14 @@ jobs:
failTitle: false" > .releaserc.yml

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version: '20'

- name: Install semantic-release
run: |
npm install semantic-release conventional-changelog-conventionalcommits -D

npm install semantic-release@v24 conventional-changelog-conventionalcommits@v8 -D
npm list
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
88 changes: 0 additions & 88 deletions .github/workflows/swift-benchmark-delta.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/swift-check-api-breaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ubuntu deps
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/swift-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,21 @@ jobs:
runs-on: [ubuntu-22.04]
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Ubuntu deps
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get install -y libjemalloc-dev llvm-15
sudo apt-get install -y libjemalloc-dev

- uses: swift-actions/setup-swift@v2

- name: Swift version
run: swift --version

- name: Run tests
continue-on-error: true
run: |
[ -d Tests ] && swift test --parallel --enable-code-coverage
run: swift test --parallel --enable-code-coverage

- name: Export code coverage
run: |
Expand All @@ -32,12 +36,12 @@ jobs:
fi

if [ -f ${xctest_binary} ]; then
llvm-cov-15 export -format="lcov" ${xctest_binary} -instr-profile .build/debug/codecov/default.profdata > info.lcov
llvm-cov export -format="lcov" ${xctest_binary} -instr-profile .build/debug/codecov/default.profdata > info.lcov
fi

- name: Upload codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_REPO_TOKEN }}
token: ${{ secrets.CODECOV_REPO_TOKEN }}
files: info.lcov
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/swift-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 60
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: GitHub Action for SwiftLint with --strict
uses: norio-nomura/action-swiftlint@3.2.1
with:
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/swift-linux-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Swift Linux build
name: Linux build

on:
workflow_dispatch:
Expand All @@ -14,17 +14,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
swift: ["5.7", "5.8"]

# swift: [ "5.10", "6.0" ]

runs-on: ${{ matrix.os }}

steps:
- uses: fwal/setup-swift@v1.23.0
- uses: swift-actions/setup-swift@v2
if: ${{ false }}
with:
swift-version: ${{ matrix.swift }}

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Ubuntu deps
if: ${{ runner.os == 'Linux' }}
Expand All @@ -38,5 +38,7 @@ jobs:
run: swift build

- name: Run tests
run: |
[ -d Tests ] && swift test --parallel
run: swift test --parallel

- name: Run tests (release)
run: swift test -c release --parallel
33 changes: 19 additions & 14 deletions .github/workflows/swift-macos-build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
name: Swift macOS build
name: macOS build

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-macos:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [macos-13]
swift: ["5.7", "5.8"]
os: [macos-15]
# swift: [ "5.10", "6.0" ]

runs-on: ${{ matrix.os }}

steps:
- uses: fwal/setup-swift@v1.24.0
- uses: swift-actions/setup-swift@v2
if: ${{ false }}
with:
swift-version: ${{ matrix.swift }}

Expand All @@ -29,18 +30,22 @@ jobs:
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
brew install jemalloc
- uses: actions/checkout@v3

- uses: actions/checkout@v4

- name: GH auth
run: |
echo "machine api.github.com login ${{ secrets.GITHUB_TOKEN }} password x-oauth-basic" > $HOME/.netrc
cat ~/.netrc

- name: Swift version
run: swift --version

- name: Build
run: swift build

- name: Run tests
run: |
if [ -d Tests ]; then
swift test --parallel
fi
run: swift test --parallel

- name: Run tests (release)
run: |
if [ -d Tests ]; then
swift test -c release --parallel
fi
run: swift test -c release --parallel
6 changes: 3 additions & 3 deletions .github/workflows/swift-outdated-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: [ubuntu-latest]
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check Swift package dependencies
id: spm-dep-check
uses: MarcoEidinger/swift-package-dependencies-check@2.3.4
uses: MarcoEidinger/swift-package-dependencies-check@2.5.0
with:
isMutating: true
failWhenOutdated: false
- name: Create Pull Request
if: steps.spm-dep-check.outputs.outdatedDependencies == 'true'
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
commit-message: 'chore: update package dependencies'
branch: updatePackageDepedencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/swift-sanitizer-address.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [macos-15]

runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand All @@ -29,7 +29,7 @@ jobs:
run: |
sudo apt-get install -y libjemalloc-dev

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Swift version
run: swift --version
Expand All @@ -40,9 +40,9 @@ jobs:

- name: Run address sanitizer
run: swift test --sanitize=address

- name: Clean before release build sanitizier
run: swift package clean

- name: Run address sanitizer on release build
run: swift test --sanitize=address -c release -Xswiftc -enable-testing
6 changes: 3 additions & 3 deletions .github/workflows/swift-sanitizer-thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
sudo apt-get install -y libjemalloc-dev
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Swift version
run: swift --version
Expand All @@ -41,9 +41,9 @@ jobs:

- name: Run thread sanitizer
run: swift test --sanitize=thread

- name: Clean before release build sanitizier
run: swift package clean

- name: Run thread sanitizer on release build
run: swift test --sanitize=thread -c release -Xswiftc -enable-testing
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
####################################################################
# DO NOT EDIT THIS FILE MANUALLY
# This is a master file maintained in https://github.com/ordo-one/repository-templates

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand Down
6 changes: 0 additions & 6 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
####################################################################
# DO NOT EDIT THIS FILE
# This is a master file maintained in https://github.com/ordo-one/public-repository-templates
#
# Add overrides into `swiftlint_refinement.yml` in the directory it self or
# .swiftlint.yml under the specific directory where the code is located
#
# Documentation is under https://github.com/realm/SwiftLint
####################################################################

Expand Down
2 changes: 1 addition & 1 deletion Tests/HistogramTests/HistogramDataAccessTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class HistogramDataAccessTests: XCTestCase {
numberOfSignificantValueDigits: numberOfSignificantValueDigits
)

override class func setUp() {
override static func setUp() {
// Log hypothetical scenario: 100 seconds of "perfect" 1msec results, sampled
// 100 times per second (10,000 results), followed by a 100 second pause with
// a single (100 second) recorded result. Recording is done indicating an expected
Expand Down