32 lines
No EOL
816 B
YAML
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 |