Skip to content
Merged
Show file tree
Hide file tree
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
44 changes: 22 additions & 22 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: docker build -t tmp .
- name: Run tests
run: docker run --rm tmp cargo test
- name: Extract artifacts
run: |
docker run --name tmp tmp true
docker cp tmp:/build/target/release/stretch-break stretch-break.x86_64
docker cp tmp:/build/stretch-break.rpm stretch-break.x86_64.rpm
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: stretch-break.x86_64
path: stretch-break.x86_64
if-no-files-found: error
- name: Upload RPM
uses: actions/upload-artifact@v4
with:
name: stretch-break.x86_64.rpm
path: stretch-break.x86_64.rpm
if-no-files-found: error
- uses: actions/checkout@v4
- name: Build
run: docker build -t tmp --target rpm .
- name: Run tests
run: docker run --rm tmp cargo test
- name: Extract artifacts
run: |
docker run --name tmp tmp true
docker cp tmp:/build/target/release/stretch-break stretch-break.x86_64
docker cp tmp:/build/stretch-break.rpm stretch-break.x86_64.rpm
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: stretch-break.x86_64
path: stretch-break.x86_64
if-no-files-found: error
- name: Upload RPM
uses: actions/upload-artifact@v4
with:
name: stretch-break.x86_64.rpm
path: stretch-break.x86_64.rpm
if-no-files-found: error
23 changes: 23 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Rust

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: docker build -t tmp --target debug .
- name: Check lock file
run: docker run --rm tmp cargo check --locked
- name: Run tests
run: docker run --rm tmp cargo test
Loading