Skip to content

Commit

Permalink
Bumped actions/upload-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
clibequilibrium committed Sep 17, 2024
1 parent b2816a1 commit f01c197
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
workflow_call:

jobs:

bindgen-ast-job:
name: "Bindgen AST"
runs-on: ${{ matrix.platform.os }}
Expand All @@ -20,7 +19,7 @@ jobs:
- name: "Clone Git repository"
uses: actions/checkout@v2
with:
submodules: 'true'
submodules: "true"

- name: "Install CAstFfi"
shell: bash
Expand All @@ -35,7 +34,7 @@ jobs:
run: cd ./bindgen && ./extract.sh

- name: "Upload C code platform abstract syntax trees"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: "ast-${{ matrix.platform.rid }}"
path: "./bindgen/ast"
Expand All @@ -49,7 +48,7 @@ jobs:
- name: "Clone Git repository"
uses: actions/checkout@v2
with:
submodules: 'false'
submodules: "false"

- name: "Download C code platform abstract syntax trees (win)"
uses: actions/download-artifact@v1
Expand Down Expand Up @@ -78,7 +77,7 @@ jobs:
run: cd ./bindgen && ./merge.sh

- name: "Upload cross-platform AST"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: "ast-cross-platform"
path: "./bindgen/x-ast/ast-cross-platform.json"
Expand All @@ -92,7 +91,7 @@ jobs:
- name: "Clone Git repository"
uses: actions/checkout@v2
with:
submodules: 'false'
submodules: "false"

- name: "Download C code cross-platform abstract syntax tree"
uses: actions/download-artifact@v1
Expand All @@ -109,7 +108,7 @@ jobs:
run: cd ./bindgen && ./generate.sh

- name: "Upload generated C# code"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: "bindgen-cs"
path: "./src/cs/production/Tracy/Generated"
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- "**.md"

jobs:

native-job:
name: "Build native libraries: ${{ matrix.platform.rid }}"
runs-on: ${{ matrix.platform.os }}
Expand All @@ -24,7 +23,6 @@ jobs:
- { name: macOS (x64 + arm64), os: macos-11, rid: osx }
- { name: Linux (x64), os: ubuntu-20.04, rid: linux-x64 }
steps:

- name: "Clone Git repository"
uses: actions/checkout@master
with:
Expand All @@ -51,7 +49,7 @@ jobs:
run: ./library.sh "auto"

- name: "Upload native libraries"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: "./lib"
name: "native-libraries-${{ matrix.platform.rid }}"
Expand All @@ -61,11 +59,10 @@ jobs:
needs: [native-job]
runs-on: ubuntu-20.04
steps:

- name: "Clone Git repository"
uses: actions/checkout@master
with:
submodules: 'true'
submodules: "true"

- name: "Download native libraries (win-x64)"
uses: actions/download-artifact@v1
Expand Down Expand Up @@ -93,4 +90,4 @@ jobs:
path: "./src/cs/production/Tracy/Generated"

- name: ".NET Build"
run: dotnet build "./src/cs" --nologo --verbosity minimal --configuration Release -p:PackageVersion="$(date +'%Y.%m.%d')"
run: dotnet build "./src/cs" --nologo --verbosity minimal --configuration Release -p:PackageVersion="$(date +'%Y.%m.%d')"

0 comments on commit f01c197

Please sign in to comment.