Skip to content

Commit

Permalink
updated pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Mar 17, 2024
1 parent de78295 commit 8e19d3b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/template/build-n-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ runs:
image: ghcr.io/alis-is/eli-build:latest
run: eli tools/build.lua --debug
options: -w /root/luabuild -v ${{ github.workspace }}:/root/luabuild -e TOOLCHAINS=${{ inputs.toolchain }}

- uses: actions/upload-artifact@v4
with:
name: release
name: release-${{ inputs.artifact-id }}
path: ./release/${{ inputs.artifact-id }}

- uses: actions/upload-artifact@v4
if: ${{ inputs.debug-artifact-id != '' }}
with:
name: debug
name: debug-${{ inputs.debug-artifact-id }}
path: ./release/${{ inputs.debug-artifact-id }}

- uses: actions/upload-artifact@v4
with:
name: release
Expand Down
17 changes: 10 additions & 7 deletions .github/template/prepare-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ description: downloads and chmods artifacts
runs:
using: "composite"
steps:
- uses: actions/download-artifact@v3
with:
path: .
- name: make executable
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
shell: sh
run: chmod +x ./release/* && ls -la ./release/*
- uses: actions/download-artifact@v4
with:
path: .
pattern: release-*
merge-multiple: true

- name: make executable
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
shell: sh
run: chmod +x ./release/* && ls -la ./release/*
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ jobs:
needs: [test-windows, test-linux, test-macos, test-ami, prepare]
steps:
- uses: actions/checkout@v4

- uses: "./.github/template/prepare-test" # downloads artifacts

- name: publish
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 8e19d3b

Please sign in to comment.