Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
ci: tidy up build script
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Dec 29, 2023
1 parent 4a695bd commit 1c7eb5e
Showing 1 changed file with 8 additions and 37 deletions.
45 changes: 8 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Squirrel
name: Build

on: [ push, pull_request ]

Expand All @@ -9,13 +9,13 @@ jobs:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Print dotnet version
run: dotnet --info

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

- name: Print dotnet version
run: dotnet --info

- uses: actions/cache@v3
with:
path: |
Expand All @@ -39,6 +39,7 @@ jobs:
- name: Install NBGV
run: dotnet tool install -g nbgv
if: ${{ matrix.os == 'macos-latest' }}
continue-on-error: true

- name: Install .Net Coverage
run: dotnet tool install -g dotnet-coverage
Expand Down Expand Up @@ -81,12 +82,6 @@ jobs:
src/Rust/target/release/updatemac
src/Rust/target/release/*.exe
# - name: Upload Coverage Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: coverage
# path: test/coverage*.xml

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
env:
Expand All @@ -99,6 +94,9 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Print dotnet version
run: dotnet --info

- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -110,19 +108,6 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget-
# - name: Install .NET 6
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 6.0.x

# - name: Install .NET 8
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.x

- name: Print dotnet version
run: dotnet --info

- name: Download Rust Windows
uses: actions/download-artifact@v4
with:
Expand All @@ -135,12 +120,6 @@ jobs:
name: rust-windows-latest
path: src/Rust/target/release

# - name: Download Coverage Artifacts
# uses: actions/download-artifact@v4
# with:
# name: coverage
# path: ./coverage

- name: Build .NET
run: dotnet build -c Release /p:PackRustAssets=true

Expand All @@ -150,14 +129,6 @@ jobs:
name: packages
path: build/Release/*.nupkg

# - name: Upload Coverage to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# with:
# directory: ./coverage
# fail_ci_if_error: true

- name: Publish to GitHub Packages
shell: pwsh
run: dotnet nuget push build/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate

0 comments on commit 1c7eb5e

Please sign in to comment.