Skip to content

Commit

Permalink
[add] migrate actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Jan 25, 2024
1 parent d58e337 commit 618a2cf
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 13 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/build_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: build_plugins
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name : "Build plugins"
Expand All @@ -18,11 +18,27 @@ jobs:
cmake --build build --config Release
python update_build_metadata.py ${{ secrets.IOLITE_PLUGIN_SALT }}
- name : "Archive plugins"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plugins
name: plugins-${{ matrix.runs-on }}
path: |
iolite_plugins/linux/*.so
iolite_plugins/linux/*.json
iolite_plugins/windows/*.dll
iolite_plugins/windows/*.json
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
path: plugins
pattern: plugins-*
merge-multiple: true
- name : "Archive plugins"
uses: actions/upload-artifact@v4
with:
name: plugins
path: |
plugins/**/*
28 changes: 22 additions & 6 deletions .github/workflows/build_sample_plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: build_sample_plugins
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name : "Build plugins"
Expand All @@ -17,9 +17,25 @@ jobs:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- name : "Archive plugins"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sample_plugins-${{ matrix.runs-on }}
path: |
iolite_c_api/sample_plugins/linux/*.so
iolite_c_api/sample_plugins/windows/*.dll
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
path: sample_plugins
pattern: sample_plugins-*
merge-multiple: true
- name : "Archive plugins"
uses: actions/upload-artifact@v4
with:
name: sample_plugins
path: |
iolite_plugins/linux/*.so
iolite_plugins/windows/*.dll
sample_plugins/**/*
4 changes: 2 additions & 2 deletions .github/workflows/bundle_samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name : "Bundle samples"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: samples
path: |
Expand Down

0 comments on commit 618a2cf

Please sign in to comment.