Skip to content

Commit

Permalink
Revert "chore(ci): cleanup uneeded build steps"
Browse files Browse the repository at this point in the history
This reverts commit db3d33b.
  • Loading branch information
ashhhleyyy committed Jul 5, 2024
1 parent db3d33b commit fe1945f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Install cross
uses: actions-rs/cargo@v1
with:
command: install
args: --force cross

- name: Login to GHCR
uses: docker/login-action@v1
with:
Expand All @@ -61,5 +67,26 @@ jobs:
- name: Display asset index
run: cat assetindex.json

- name: Build with cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release

- name: Build with cross (aarch64-unknown-linux-musl)
run: cross build --release --target aarch64-unknown-linux-musl

- name: Upload artifacts (x64)
uses: actions/upload-artifact@v2
with:
name: website-x64
path: target/release/website

- name: Upload artifacts (arm64)
uses: actions/upload-artifact@v2
with:
name: website-arm64
path: target/aarch64-unknown-linux-musl/release/website

- name: Build container image
run: docker buildx build -t ghcr.io/ashhhleyyy/website:latest -t ghcr.io/ashhhleyyy/website:${GITHUB_SHA} --platform linux/arm64 --push .

0 comments on commit fe1945f

Please sign in to comment.