Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #56

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 25 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,31 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v4

- name: Install build dependencies - Rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --profile minimal --target x86_64-unknown-linux-musl wasm32-unknown-unknown -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Check code style
run: cargo fmt -- --check
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test --verbose -- --nocapture

- name: Install build dependencies - Cargo-Binstall
uses: cargo-bins/cargo-binstall@main

- name: Install build dependencies - Trunk
run: cargo binstall -y trunk

- name: Building frontend (wasm32)
working-directory: src/webpage
run: trunk build --release --locked --verbose

- name: Building tests
run: SKIP_FRONTEND=1 cargo test --no-run --locked --verbose

- name: Run Tests
run: SKIP_FRONTEND=1 cargo test --verbose -- --nocapture

build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -50,7 +67,7 @@ jobs:
- name: Building ${{ matrix.TARGET }}
run: echo "${{ matrix.TARGET }}"

- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Install build dependencies - Rustup
run: |
Expand Down Expand Up @@ -78,7 +95,7 @@ jobs:
- name: Rename
run: cp target/${{ matrix.TARGET }}/release/${{ github.event.repository.name }}${{ matrix.EXTENSION }} ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}

- uses: actions/upload-artifact@master
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
path: ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
Expand Down