CI: Use same date with both x86_64
and aarch64
builds
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
4f1b521252
commit
e2e1d14465
1 changed files with 18 additions and 3 deletions
|
@ -5,18 +5,32 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
prepare:
|
||||||
|
name: Prepare
|
||||||
|
runs-on: Pmbootstrap
|
||||||
|
outputs:
|
||||||
|
time: ${{ steps.time.outputs.time }}
|
||||||
|
steps:
|
||||||
|
- name: Set start Time
|
||||||
|
id: time
|
||||||
|
shell: sh
|
||||||
|
run: echo time=$(date +"%Y%m%d%H%M%S") >> $GITHUB_OUTPUT
|
||||||
|
- name: Update pmbootstrap
|
||||||
|
uses: actions/pmbootstrap-update@master
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
name: Build for ${{ matrix.info.arch }}
|
||||||
runs-on: Pmbootstrap
|
runs-on: Pmbootstrap
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
info:
|
info:
|
||||||
- arch: aarch64
|
|
||||||
- arch: x86_64
|
- arch: x86_64
|
||||||
name: Build for ${{ matrix.info.arch }}
|
- arch: aarch64
|
||||||
|
needs: prepare
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build package
|
- name: Build packages
|
||||||
id: build
|
id: build
|
||||||
uses: actions/pmbootstrap-build@main
|
uses: actions/pmbootstrap-build@main
|
||||||
with:
|
with:
|
||||||
|
@ -24,6 +38,7 @@ jobs:
|
||||||
aports: ${{github.workspace}}/package/alpine
|
aports: ${{github.workspace}}/package/alpine
|
||||||
arch: ${{ matrix.info.arch }}
|
arch: ${{ matrix.info.arch }}
|
||||||
src: ${{github.workspace}}
|
src: ${{github.workspace}}
|
||||||
|
time: ${{ needs.prepare.outputs.time }}
|
||||||
- name: "Upload packages"
|
- name: "Upload packages"
|
||||||
uses: actions/upload-alpine-package@main
|
uses: actions/upload-alpine-package@main
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue