Skip to content

Commit

Permalink
Bump actions/download-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
clibequilibrium committed Sep 17, 2024
1 parent 4e28b40 commit bec0146
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ jobs:
submodules: "false"

- name: "Download C code platform abstract syntax trees (win)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "ast-win"
path: "./bindgen/ast"

- name: "Download C code platform abstract syntax trees (osx)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "ast-osx"
path: "./bindgen/ast"

- name: "Download C code platform abstract syntax trees (linux)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "ast-linux"
path: "./bindgen/ast"
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
submodules: "false"

- name: "Download C code cross-platform abstract syntax tree"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "ast-cross-platform"
path: "./bindgen/x-ast"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,25 @@ jobs:
submodules: "true"

- name: "Download native libraries (win-x64)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "native-libraries-win-x64"
path: "./lib"

- name: "Download native libraries (osx)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "native-libraries-osx"
path: "./lib"

- name: "Download native libraries (linux-x64)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "native-libraries-linux-x64"
path: "./lib"

- name: "Download generated C# code"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
continue-on-error: true
with:
name: "bindgen-cs"
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@ on:
permissions: write-all

jobs:

commit-job:
name: "Commit generated C# code"
runs-on: ubuntu-20.04
if: github.actor == 'dependabot[bot]'

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

- name: "Download changes to commit"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "bindgen-cs"
path: "./src/cs/production/Tracy/Generated"

- name: "Add + commit + push (if necessary)"
uses: EndBug/add-and-commit@v7
with:
author_name: 'clibequilibrium'
author_email: 'clibequilibrium@users.noreply.github.com'
author_name: "clibequilibrium"
author_email: "clibequilibrium@users.noreply.github.com"
message: "Update C# bindings"
16 changes: 7 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ on:
workflow_dispatch:
inputs:
version:
description: Version of the package
description: Version of the package
required: true
default: '0.0.0'
default: "0.0.0"
schedule:
- cron: "0 0 1 * *" # First day of every month

jobs:

build-job:
name: "Build"
uses: "./.github/workflows/build.yml"
Expand All @@ -22,26 +21,25 @@ jobs:
permissions:
contents: write
steps:

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

- name: "Download native libraries (win-x64)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "native-libraries-win-x64"
path: "./lib"

- name: "Download native libraries (osx)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "native-libraries-osx"
path: "./lib"

- name: "Download native libraries (linux-x64)"
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: "native-libraries-linux-x64"
path: "./lib"
Expand All @@ -54,9 +52,9 @@ jobs:
NUGET_ACCESS_TOKEN: ${{ secrets.NUGET_ACCESS_TOKEN }}
run: dotnet nuget push "./src/cs/production/**/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $NUGET_ACCESS_TOKEN

- name: "Create tag and GitHub release"
- name: "Create tag and GitHub release"
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: false
tag_name: "v${{ github.event.inputs.version }}"
tag_name: "v${{ github.event.inputs.version }}"

0 comments on commit bec0146

Please sign in to comment.