Skip to content

Commit

Permalink
build-ubuntu-unsecure.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Aug 8, 2024
1 parent a088624 commit 5a15925
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-ubuntu-unsecure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
workflow_call:
inputs:
workflow:
required: true
type: string
toolset:
required: false
type: string
default: 'gnu'
version:
required: false
type: string
default: '20.04'

jobs:
build-ubuntu:
runs-on: ubuntu-latest
container: ubuntu:${{ inputs.version }}
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- uses: actions/checkout@v3
- name: build ${{ inputs.workflow }}-ubuntu-${{ inputs.toolset }}
run: |
./${{ inputs.workflow }}/build_${{ inputs.toolset }}.sh
- uses: actions/upload-artifact@v3
with:
name: build-${{ inputs.toolset }}
path: ./${{ inputs.workflow }}/release/build-${{ inputs.toolset }}.tar.gz
4 changes: 2 additions & 2 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
runs-on: ubuntu-latest
container: ubuntu:${{ inputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: build ${{ inputs.workflow }}-ubuntu-${{ inputs.toolset }}
run: |
./${{ inputs.workflow }}/build_${{ inputs.toolset }}.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: build-${{ inputs.toolset }}
path: ./${{ inputs.workflow }}/release/build-${{ inputs.toolset }}.tar.gz
4 changes: 2 additions & 2 deletions .github/workflows/far2l.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:

ubuntu-glibc:
if: ${{ vars.CURRENT_TOOL == github.workflow }}
uses: ./.github/workflows/build-ubuntu.yml
uses: ./.github/workflows/build-ubuntu-unsecure.yml
with:
workflow: ${{ github.workflow }}
version: 18.04
toolset: glibc

ubuntu-glibc-p:
if: ${{ vars.CURRENT_TOOL == github.workflow }}
uses: ./.github/workflows/build-ubuntu.yml
uses: ./.github/workflows/build-ubuntu-unsecure.yml
with:
workflow: ${{ github.workflow }}
version: 18.04
Expand Down

0 comments on commit 5a15925

Please sign in to comment.