Skip to content

Commit

Permalink
feat: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ko-matsu committed Dec 9, 2023
1 parent 8ed7796 commit f5c29c4
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 36 deletions.
42 changes: 34 additions & 8 deletions .github/workflows/check_pre-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ on:
- stable_v*

jobs:
test-dotnet7:
name: dotnet 7.0
test-dotnet8:
name: dotnet 8.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, windows-2022, ubuntu-22.04]

steps:
- name: setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- uses: actions/checkout@v3
dotnet-version: 8.0.x
- uses: actions/checkout@v4
- name: build and test
if: runner.os != 'Windows'
run: |
Expand All @@ -40,19 +40,45 @@ jobs:
./tools/build.bat
./tools/test.bat
test-dotnet7:
name: dotnet 7.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [macos-13, windows-2022, ubuntu-22.04]
os: [windows-2022, ubuntu-22.04]

steps:
- name: setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- uses: actions/checkout@v4
- name: build and test
if: runner.os != 'Windows'
run: |
./tools/build_net7.sh
./tools/test_net7.sh
- name: build and test on win
if: runner.os == 'Windows'
run: |
./tools/build_net7.bat
./tools/test_net7.bat
test-dotnet6:
name: dotnet 6.0
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, windows-2022, ubuntu-22.04]
#os: [macos-13, windows-2022, ubuntu-22.04]
os: [windows-2022, ubuntu-22.04]

steps:
- name: setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build and test
if: runner.os != 'Windows'
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/code_scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
analyze-CodeQL:
name: CodeQL
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand All @@ -33,15 +33,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is a pull request then we can checkout the head.
fetch-depth: 2

- name: setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
75 changes: 51 additions & 24 deletions .github/workflows/create_release-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:
jobs:
create_releases:
name: create-releases
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
Expand All @@ -35,24 +35,28 @@ jobs:
runs-on: windows-2019
strategy:
matrix:
dotnet_target: [6.0, 7.0]
dotnet_target: [6.0, 7.0, 8.0]
include:
- dotnet_target: 6.0
dotnet_version: 6.0.413
dotnet_version: 6.0.417
framework: net6.0
script_suffix: "_net6"
- dotnet_target: 7.0
dotnet_version: 7.0.400
dotnet_version: 7.0.404
framework: net7.0
script_suffix: "_net7"
- dotnet_target: 8.0
dotnet_version: 8.0.100
framework: net8.0
script_suffix:

steps:
- name: setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet_version }}
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -98,24 +102,28 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
dotnet_target: [6.0, 7.0]
dotnet_target: [6.0, 7.0, 8.0]
include:
- dotnet_target: 6.0
dotnet_version: 6.0.413
dotnet_version: 6.0.417
framework: net6.0
script_suffix: "_net6"
- dotnet_target: 7.0
dotnet_version: 7.0.400
dotnet_version: 7.0.404
framework: net7.0
script_suffix: "_net7"
- dotnet_target: 8.0
dotnet_version: 8.0.100
framework: net8.0
script_suffix:

steps:
- name: setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet_version }}
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -151,33 +159,52 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12]
xcode_version: ['11.7', '12.5.1', '13.4.1']
dotnet_target: [6.0, 7.0]
#os: [macos-11, macos-12, macos-13]
os: [macos-11, macos-13]
xcode_version: ['11.7', '12.5.1', '13.2.1', '13.4.1', '14.2', '14.3.1', '15.0.1']
dotnet_target: [8.0]
exclude:
- xcode_version: '11.7'
os: macos-13
- xcode_version: '12.5.1'
os: macos-13
- xcode_version: '13.2.1'
os: macos-13
- xcode_version: '13.4.1'
os: macos-13
- xcode_version: '14.2'
os: macos-13
- xcode_version: '11.7'
os: macos-12
- xcode_version: '12.5.1'
os: macos-12
- xcode_version: '13.2.1'
os: macos-12
- xcode_version: '14.3.1'
os: macos-12
- xcode_version: '15.0.1'
os: macos-12
- xcode_version: '13.4.1'
os: macos-11
- xcode_version: '14.2'
os: macos-11
- xcode_version: '14.3.1'
os: macos-11
- xcode_version: '15.0.1'
os: macos-11
include:
- dotnet_target: 6.0
dotnet_version: 6.0.413
framework: net6.0
script_suffix: "_net6"
- dotnet_target: 7.0
dotnet_version: 7.0.400
framework: net7.0
- dotnet_target: 8.0
dotnet_version: 8.0.100
framework: net8.0
script_suffix:

steps:
- name: setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet_version }}
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f5c29c4

Please sign in to comment.