mirror of
https://github.com/3cky/mbusd
synced 2025-10-26 23:46:44 +08:00
hopefully fixed apt dependency
This commit is contained in:
@@ -5,17 +5,10 @@ stages:
|
|||||||
|
|
||||||
.mbusd_job_template: &mbusd_job_template # Hidden key that defines an anchor
|
.mbusd_job_template: &mbusd_job_template # Hidden key that defines an anchor
|
||||||
image: debian:stable
|
image: debian:stable
|
||||||
before_script:
|
|
||||||
- apt update -qq
|
|
||||||
- apt install -y -qq build-essential pkg-config cmake
|
|
||||||
- apt install -y gcc-arm-linux-gnueabihf
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
# create an archive with a name of the current stage and branch name
|
# create an archive with a name of the current stage and branch name
|
||||||
name: "${CI_BUILD_STAGE}_${CI_BUILD_REF_NAME}"
|
name: "${CI_BUILD_STAGE}_${CI_BUILD_REF_NAME}"
|
||||||
untracked: true
|
expire_in: 1 day
|
||||||
expire_in: 1 mos
|
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
- output.dir/mbusd
|
- output.dir/mbusd
|
||||||
- doc/mbusd.8
|
- doc/mbusd.8
|
||||||
@@ -23,6 +16,8 @@ stages:
|
|||||||
build:linux_armhf:
|
build:linux_armhf:
|
||||||
<<: *mbusd_job_template
|
<<: *mbusd_job_template
|
||||||
stage: build
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt install -y -qq build-essential pkg-config cmake
|
||||||
script:
|
script:
|
||||||
- mkdir output.dir/
|
- mkdir output.dir/
|
||||||
- cd output.dir
|
- cd output.dir
|
||||||
@@ -32,6 +27,8 @@ build:linux_armhf:
|
|||||||
build:linux_x86:
|
build:linux_x86:
|
||||||
<<: *mbusd_job_template
|
<<: *mbusd_job_template
|
||||||
stage: build
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt install -y -qq build-essential pkg-config cmake gcc-arm-linux-gnueabihf
|
||||||
script:
|
script:
|
||||||
- mkdir output.dir/
|
- mkdir output.dir/
|
||||||
- cd output.dir
|
- cd output.dir
|
||||||
@@ -40,9 +37,11 @@ build:linux_x86:
|
|||||||
|
|
||||||
test_x86:
|
test_x86:
|
||||||
stage: test
|
stage: test
|
||||||
|
image: debian:stable
|
||||||
#https://forum.gitlab.com/t/testing-copy-yaml-file-to-build-folder/8309
|
#https://forum.gitlab.com/t/testing-copy-yaml-file-to-build-folder/8309
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get install --fix-missing -y python3-dev python3-pip python3-setuptools socat
|
- apt install -y -qq build-essential pkg-config cmake
|
||||||
|
- apt install -y -qq python-dev python-pip python-setuptools socat
|
||||||
- python -m pip install pymodbus service_identity
|
- python -m pip install pymodbus service_identity
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
Reference in New Issue
Block a user