test/.forgejo/workflows/try.yaml
renich 964c73ebbc
All checks were successful
/ stuff (push) Successful in 33s
Update .forgejo/workflows/try.yaml
2024-11-28 14:47:56 -06:00

32 lines
No EOL
816 B
YAML

on: [push]
jobs:
stuff:
runs-on: podman
container:
image: alpine:latest
steps:
- run: ls -al
- run: pwd
- run: ls /etc
- run: cat /etc/os-release
- name: install git
run: apk --no-interactive --no-cache add git
- name: get repo
run: git clone ${{ github.server_url }}/${{ github.repository }} .
- run: ls
- name: install rust
run: apk --no-interactive --no-cache add cargo
- name: build project
run: |
cargo init myapp
cd myapp
cat << 'EOF' > src/main.rs
fn main() {
println!("Hello, world!");
}
EOF
cargo build --release
# nos e acordó del path
- name: test build
run: ./myapp/target/release/myapp