Skip to content

Commit 6347fbf

Browse files
committed
ci(actions): remove build via nix to use native
1 parent 6147c50 commit 6347fbf

2 files changed

Lines changed: 36 additions & 23 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,47 @@ concurrency:
1212
group: deploy-polybase
1313
cancel-in-progress: false
1414

15+
env:
16+
TARGET_OS: "openbsd"
17+
TARGET_FOLDER: "target"
18+
1519
jobs:
1620
build:
1721
name: Build polybase package
1822
runs-on: ubuntu-latest
1923
steps:
20-
- name: Checkout source code
21-
uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2225

23-
- name: Install nix
24-
uses: cachix/install-nix-action@v22
26+
- name: Install Go
27+
uses: actions/setup-go@v6
2528
with:
26-
nix_path: nixpkgs=channel:nixos-unstable
29+
go-version: '1.24'
30+
31+
- name: Install Bun
32+
uses: oven-sh/setup-bun@v2
33+
34+
- name: Install just and scdoc
35+
run: sudo apt install -y just scdoc
2736

28-
- name: Build package
29-
run: nix build
37+
- name: Build and publish
38+
run: just publish
3039

3140
- name: Upload build result
32-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@v6
3342
with:
3443
name: result
35-
path: result/
44+
path: $TARGET_FOLDER/
3645

3746
deploy:
3847
name: Deploy to openbsd server
3948
runs-on: ubuntu-latest
4049
needs: build
4150
steps:
4251
- name: Download build result
43-
uses: actions/download-artifact@v4
52+
uses: actions/download-artifact@v6
4453
with:
4554
name: result
46-
path: result/
55+
path: $TARGET_FOLDER/
4756

4857
- name: Install SSH key
4958
uses: shimataro/ssh-key-action@v2
@@ -53,5 +62,5 @@ jobs:
5362

5463
- name: Deploy to server
5564
run: |
56-
scp -r result/* ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOSTNAME }}:/tmp/
65+
scp -r $TARGET_FOLDER/* ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOSTNAME }}:/tmp/
5766
ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOSTNAME }} 'cd /tmp && sh install.sh'

.github/workflows/test.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,31 @@ jobs:
1616
format:
1717
runs-on: ubuntu-latest
1818
steps:
19+
- uses: actions/checkout@v6
20+
1921
- name: Install Go
20-
uses: actions/setup-go@v3
22+
uses: actions/setup-go@v6
2123
with:
22-
go-version: 1.23
23-
24-
- name: Code
25-
uses: actions/checkout@v3
24+
go-version: '1.24'
2625

2726
- name: Check diff between gofmt and code
2827
run: diff <(gofmt -d .) <(echo -n)
2928
build:
3029
name: Build polybase package
3130
runs-on: ubuntu-latest
3231
steps:
33-
- name: Checkout source code
34-
uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3533

36-
- name: Install nix
37-
uses: cachix/install-nix-action@v22
34+
- name: Install Go
35+
uses: actions/setup-go@v6
3836
with:
39-
nix_path: nixpkgs=channel:nixos-unstable
37+
go-version: '1.24'
38+
39+
- name: Install Bun
40+
uses: oven-sh/setup-bun@v2
41+
42+
- name: Install just and scdoc
43+
run: sudo apt install -y just scdoc
4044

4145
- name: Build package
42-
run: nix build
46+
run: just build

0 commit comments

Comments
 (0)