Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d6540af
initial ci/cd test
thiennamdinh Apr 22, 2025
38aabc3
Update README.md
thiennamdinh Apr 22, 2025
5f315c3
Merge branch 'main' into ci/cd
thiennamdinh Apr 23, 2025
8bbdc43
merge in main
thiennamdinh Apr 23, 2025
6a68f41
try slight tweak to the actions file
thiennamdinh Apr 23, 2025
9f7ac3d
first attempt to push to github container registry
thiennamdinh Apr 23, 2025
b0dd49b
rename "docker" action to "container"
thiennamdinh Apr 23, 2025
6b5c8eb
first attempt at publishing documents to github pages
thiennamdinh Apr 23, 2025
e6ca01d
finish renaming docker to container
thiennamdinh Apr 23, 2025
8af8e92
attempt to fix the container workflow error
thiennamdinh Apr 23, 2025
e6dbcbd
fix pages workflow
thiennamdinh Apr 23, 2025
a5fa59d
try github pages again
thiennamdinh Apr 23, 2025
754ce68
tweak workflows a bit
thiennamdinh Apr 23, 2025
983c05d
fix version number (1.0.1, not 1.1.0)
thiennamdinh Apr 23, 2025
88a4c4b
attempt to use version number and reduce build time
thiennamdinh Apr 23, 2025
5684996
switch to updated upload/download artifact actions
thiennamdinh Apr 23, 2025
4c15a74
ensure that containerization and publication only happens after testing
thiennamdinh Apr 23, 2025
5e90c59
small tweak attempt
thiennamdinh Apr 23, 2025
b8ed7ba
try leaving .cargo where it is
thiennamdinh Apr 23, 2025
982a0f8
compress workflows into a single step
thiennamdinh Apr 23, 2025
f80f234
try again
thiennamdinh Apr 23, 2025
36061fd
try without if statements
thiennamdinh Apr 23, 2025
4c9ca86
get rid of extra legacy step
thiennamdinh Apr 23, 2025
9172296
hopefully last fix
thiennamdinh Apr 23, 2025
221e0ba
fix typo
thiennamdinh Apr 23, 2025
f14b2ec
Update all.yml
thiennamdinh Apr 24, 2025
fcc1e4a
Update all.yml
thiennamdinh Apr 24, 2025
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
61 changes: 61 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: All

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

concurrency:
group: "all"
cancel-in-progress: false

jobs:
run:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y llvm-dev libclang-dev clang
- name: Install rust
uses: moonrepo/setup-rust@v1
- name: Checkout code
uses: actions/checkout@v4
- name: Build project
run: cargo build
- name: Test project
run: cargo test
- name: Setup Pages
# if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
- name: Create documents
# if: github.ref == 'refs/heads/main'
run: cargo doc --no-deps
- name: Upload documents artifact
# if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: './target/doc/'
- name: Deploy to GitHub Pages
# if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v4
- name: Login to Github registry
# if: github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker images
# if: github.ref == 'refs/heads/main'
run: |
docker build . --tag ghcr.io/${{ github.repository }}/journal-sdk:latest
docker build . --tag ghcr.io/${{ github.repository }}/journal-sdk:$( cargo pkgid | cut -d '@' -f 2 )
- name: Push Docker images
# if: github.ref == 'refs/heads/main'
run: |
docker push ghcr.io/${{ github.repository }}/journal-sdk:latest
docker push ghcr.io/${{ github.repository }}/journal-sdk:$( cargo pkgid | cut -d '@' -f 2 )
18 changes: 0 additions & 18 deletions .github/workflows/docker.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "journal-sdk"
version = "1.1.0"
version = "1.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ The [./lisp](./lisp) folder provides some examples.

In general, this software still undergoing development.
Functionality and interfaces may change at any time.

// test ci/cd