Skip to content

Commit 49fb61a

Browse files
committed
Setup deployment script
1 parent 844f03d commit 49fb61a

5 files changed

Lines changed: 77 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
version:
17+
- '1'
18+
os:
19+
- ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: julia-actions/setup-julia@v2
23+
with:
24+
version: ${{ matrix.version }}
25+
- uses: julia-actions/cache@v2
26+
- uses: julia-actions/julia-buildpkg@v1
27+
- uses: julia-actions/julia-runtest@v1
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Dyad Bot
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- bc/build-dyad-bot
8+
pull_request:
9+
10+
jobs:
11+
todo:
12+
name: Run todo script
13+
runs-on: ubuntu-24.04-arm
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: julia-actions/setup-julia@v2
17+
with:
18+
version: '1.12'
19+
- uses: julia-actions/cache@v2
20+
- name: Run todo script
21+
run: |
22+
julia -e 'using Pkg; Pkg.Apps.add("JuliaC");'
23+
~/.julia/bin/juliac -trim=unsafe-warn --output-exe ctrl --project deploy --bundle ctrl-bundle deploy/src/main.jl
24+
- name: Create bundle archive
25+
run: zip -r ctrl-bundle.zip ctrl-bundle
26+
- name: Upload artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: ctrl-bundle
30+
path: ctrl-bundle.zip

deploy/Manifest.toml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

deploy/src/main.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function (@main)(args)::Cint
2+
println(Core.stdout, "hello world!")
3+
return 0
4+
end

0 commit comments

Comments
 (0)