mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
Update build pipeline (#1896)
* bump action versions to fix build warnings * resolve warning on set-output * Replace replace toolchain action with rustup cmd * fix syntax * run apt-get update before installing * use apt-get
This commit is contained in:
committed by
GitHub
parent
10a7bd2eff
commit
8093faee19
34
.github/workflows/backend.yaml
vendored
34
.github/workflows/backend.yaml
vendored
@@ -31,17 +31,18 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
if: ${{ matrix.target == 'aarch64' }}
|
if: ${{ matrix.target == 'aarch64' }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
if: ${{ matrix.target == 'aarch64' }}
|
if: ${{ matrix.target == 'aarch64' }}
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- name: "Install Rust"
|
||||||
with:
|
run: |
|
||||||
toolchain: ${{ env.RUST_VERSION }}
|
rustup toolchain install ${{ env.RUST_VERSION }} --profile minimal --no-self-update
|
||||||
override: true
|
rustup default ${{ inputs.rust }}
|
||||||
|
shell: bash
|
||||||
if: ${{ matrix.target == 'x86_64' }}
|
if: ${{ matrix.target == 'x86_64' }}
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
@@ -88,10 +89,11 @@ jobs:
|
|||||||
name: ${{ matrix.snapshot_download }}
|
name: ${{ matrix.snapshot_download }}
|
||||||
path: libs/js_engine/src/artifacts/
|
path: libs/js_engine/src/artifacts/
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
- name: "Install Rust"
|
||||||
with:
|
run: |
|
||||||
toolchain: ${{ env.RUST_VERSION }}
|
rustup toolchain install ${{ env.RUST_VERSION }} --profile minimal --no-self-update
|
||||||
override: true
|
rustup default ${{ inputs.rust }}
|
||||||
|
shell: bash
|
||||||
if: ${{ matrix.target == 'x86_64' }}
|
if: ${{ matrix.target == 'x86_64' }}
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
@@ -105,7 +107,9 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-backend-${{ matrix.target }}-${{ hashFiles('backend/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-backend-${{ matrix.target }}-${{ hashFiles('backend/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get install libavahi-client-dev
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install libavahi-client-dev
|
||||||
if: ${{ matrix.target == 'x86_64' }}
|
if: ${{ matrix.target == 'x86_64' }}
|
||||||
|
|
||||||
- name: Check Git Hash
|
- name: Check Git Hash
|
||||||
@@ -193,11 +197,11 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
if: ${{ matrix.target == 'aarch64' }}
|
if: ${{ matrix.target == 'aarch64' }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
if: ${{ matrix.target == 'aarch64' }}
|
if: ${{ matrix.target == 'aarch64' }}
|
||||||
|
|
||||||
- run: mkdir -p ~/.cargo/bin
|
- run: mkdir -p ~/.cargo/bin
|
||||||
@@ -230,8 +234,8 @@ jobs:
|
|||||||
-e CARGO_TERM_COLOR=${{ env.CARGO_TERM_COLOR }} \
|
-e CARGO_TERM_COLOR=${{ env.CARGO_TERM_COLOR }} \
|
||||||
-P ubuntu:20.04 \
|
-P ubuntu:20.04 \
|
||||||
sh -c '
|
sh -c '
|
||||||
apt update &&
|
apt-get update &&
|
||||||
apt install -y ca-certificates &&
|
apt-get install -y ca-certificates &&
|
||||||
cd /home/rust/src &&
|
cd /home/rust/src &&
|
||||||
mkdir -p ~/.cargo/bin &&
|
mkdir -p ~/.cargo/bin &&
|
||||||
tar -zxvf nextest-aarch64.tar.gz -C ${CARGO_HOME:-~/.cargo}/bin &&
|
tar -zxvf nextest-aarch64.tar.gz -C ${CARGO_HOME:-~/.cargo}/bin &&
|
||||||
|
|||||||
2
.github/workflows/frontend.yaml
vendored
2
.github/workflows/frontend.yaml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Get npm cache directory
|
- name: Get npm cache directory
|
||||||
id: npm-cache-dir
|
id: npm-cache-dir
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=dir::$(npm config get cache)"
|
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
id: npm-cache
|
id: npm-cache
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/reusable-workflow.yaml
vendored
2
.github/workflows/reusable-workflow.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: ${{ inputs.build_command }}
|
run: ${{ inputs.build_command }}
|
||||||
|
|||||||
Reference in New Issue
Block a user