Move ci user setup to workflow file
Some checks are pending
/ verify (push) Waiting to run

This commit is contained in:
Juno Takano 2026-03-21 10:28:49 -03:00
commit 16088de227
2 changed files with 10 additions and 5 deletions

View file

@ -32,9 +32,12 @@ jobs:
rustup target add x86_64-unknown-linux-musl
- name: Setup additional tooling
run: .forgejo/workflows/setup-tools.sh
- name: Setup permissions for ci user
run: |
.forgejo/workflows/setup-tools.sh
git config --add safe.directory "$PWD"
useradd -m ci && chown -R ci:ci .
git config --global --add safe.directory "$PWD"
- name: Build
run: just ci build

View file

@ -433,13 +433,13 @@ default:
choose:
@just --choose
alias ch := choose
[script, private]
ci recipe:
id -u ci >/dev/null 2>&1 || useradd -m ci
chown -R ci:ci .
su ci -c "just {{ recipe }}"
alias ch := choose
## VARIABLES
export CARGO_TERM_COLOR := 'always'
@ -460,4 +460,6 @@ lockfile_version := ```
| grep version | cut -d '"' -f 2
```
## OPTIONS
set unstable