Skip to content

Commit

Permalink
Modernize GitHub action.
Browse files Browse the repository at this point in the history
[rust]
  • Loading branch information
zopieux committed Feb 11, 2024
1 parent d4f77d9 commit 8067889
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,27 @@ jobs:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[rust]')"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup TypeScript compiler
run: yarn global add typescript@next

- name: Install build dependencies
run: sudo apt-get install -y -q sassc
env:
DEBIAN_FRONTEND: noninteractive

- name: Setup Install rust toolchain
uses: actions-rs/toolchain@v1
- uses: DeterminateSystems/nix-installer-action@main
with:
toolchain: nightly
override: true
diagnostic-endpoint: ''

- name: cargo build
uses: actions-rs/cargo@v1
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
command: build
args: --all-targets
env:
SQLX_OFFLINE: true
diagnostic-endpoint: ''

- name: cargo build
run: nix build

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
env:
SQLX_OFFLINE: true
run: nix develop --command cargo test

check-js:
name: "check frontend code"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: cd ircj-serve && yarn
Expand Down

0 comments on commit 8067889

Please sign in to comment.