Skip to content
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

V15/cached actions #708

Merged
merged 10 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 5 additions & 8 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ jobs:
schema_gen_project: ./uSync.SchemaGenerator/uSync.SchemaGenerator.csproj

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .Net core
uses: actions/setup-dotnet@v4
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
cache: true
cache-dependency-path: "**/packages.lock.json"

- name: restore
run: dotnet restore ${{ env.solution_name}}
run: dotnet restore ${{ env.solution_name}} --locked-mode

- name: build
run: dotnet build ${{ env.solution_name }} -c ${{ env.config }} -p:ContinuousIntegrationBuild=true
Expand Down
32 changes: 21 additions & 11 deletions .github/workflows/package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,15 @@ jobs:
schema_gen_project: ./uSync.SchemaGenerator/uSync.SchemaGenerator.csproj

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .Net core
uses: actions/setup-dotnet@v4
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
cache: true
cache-dependency-path: "**/packages.lock.json"

- name: restore
run: dotnet restore ${{ env.solution_name}}
run: dotnet restore ${{ env.solution_name}} --locked-mode

- name: build
run: dotnet build ${{ env.solution_name }} -c ${{ env.config }} -p:ContinuousIntegrationBuild=true
Expand All @@ -76,10 +73,12 @@ jobs:
needs: [build-project, version]

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
fetch-depth: 0
dotnet-version: 9.0.x
cache: true
cache-dependency-path: "**/packages.lock.json"

- name: version
run: |
Expand All @@ -89,6 +88,17 @@ jobs:
working-directory: ./uSync.Backoffice.Management.Client/usync-assets
run: npm version ${{ needs.version.outputs.version_string }}

- name: npm install
working-directory: ./uSync.Backoffice.Management.Client/usync-assets
run: npm ci

- name: npm build
working-directory: ./uSync.Backoffice.Management.Client/usync-assets
run: npm run build

- name: restore
run: dotnet restore ${{ env.solution_name}} --locked-mode

- name: package uSync.Core
run: dotnet pack ./uSync.Core/uSync.Core.csproj -c ${{env.config}} --output ${{env.out_folder}} /p:version=${{ needs.version.outputs.version_string }}

Expand Down
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

<Nullable>enable</Nullable>

<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>

<PackageReleaseNotes>
<![CDATA[9.0 : Dotnet core version
- 9.1 : Net 5/6 targets
Expand Down
Loading
Loading