Skip to content

Commit

Permalink
ci: update actions/upload-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Mar 8, 2024
1 parent d1fca62 commit 5911bf1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ on:
type: string
jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
runs-on: [macos-13, macos-14]
include:
- { runs-on: macos-14, create-distributable: true }
env:
boost_version: 1.84.0
BOOST_ROOT: ${{ github.workspace }}/deps/boost-1.84.0
Expand Down Expand Up @@ -89,6 +91,7 @@ jobs:
run: make test

- name: Create distributable
if: matrix.create-distributable
run: |
make install
tar -cjvf rime-${{ env.git_ref_name }}-${{ runner.os }}.tar.bz2 \
Expand All @@ -98,8 +101,10 @@ jobs:
bin include lib share
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: matrix.create-distributable
uses: actions/upload-artifact@v4
with:
name: artifact-${{ runner.os }}
path: |
rime-${{ env.git_ref_name }}-${{ runner.os }}.tar.bz2
rime-deps-${{ env.git_ref_name }}-${{ runner.os }}.tar.bz2
5 changes: 4 additions & 1 deletion .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifact
merge-multiple: true

- name: Create Nightly release
if: ${{ github.ref == 'refs/heads/master' }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ jobs:
bin include lib share
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}
path: |
rime-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}.7z
rime-deps-${{ env.git_ref_name }}-${{ runner.os }}-${{ matrix.compiler }}-${{ matrix.arch }}.7z
Expand Down Expand Up @@ -203,7 +204,8 @@ jobs:
bin include lib share
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact-${{ runner.os }}-mingw
path: |
rime-${{ env.git_ref_name }}-${{ runner.os }}-mingw.tar.bz2

0 comments on commit 5911bf1

Please sign in to comment.