@@ -69,56 +69,57 @@ jobs:
6969 path : ./dist/devbox
7070 retention-days : 7
7171
72- typos :
73- name : Spell Check with Typos
74- if : github.ref != 'refs/heads/main'
75- runs-on : ubuntu-latest
76- steps :
77- - uses : actions/checkout@v4
78- -
uses :
crate-ci/[email protected] 72+ # typos:
73+ # name: Spell Check with Typos
74+ # if: github.ref != 'refs/heads/main'
75+ # runs-on: ubuntu-latest
76+ # steps:
77+ # - uses: actions/checkout@v4
78+ # - uses: crate-ci/[email protected] 7979
80- flake-test :
81- name : Test Flake Build
82- if : github.ref != 'refs/heads/main'
83- runs-on : ubuntu-latest
84- steps :
85- - uses : actions/checkout@v4
86- - uses : DeterminateSystems/nix-installer-action@main
87- - run : nix build .
88- - run : ./result/bin/devbox version
80+ # flake-test:
81+ # name: Test Flake Build
82+ # if: github.ref != 'refs/heads/main'
83+ # runs-on: ubuntu-latest
84+ # steps:
85+ # - uses: actions/checkout@v4
86+ # - uses: DeterminateSystems/nix-installer-action@main
87+ # - run: nix build .
88+ # - run: ./result/bin/devbox version
8989
90- golangci-lint :
91- strategy :
92- matrix :
93- os : [ubuntu-latest, macos-13]
94- runs-on : ${{ matrix.os }}
95- timeout-minutes : 10
96- steps :
97- - uses : actions/checkout@v4
90+ # golangci-lint:
91+ # strategy:
92+ # matrix:
93+ # os: [ubuntu-latest, macos-13]
94+ # runs-on: ${{ matrix.os }}
95+ # timeout-minutes: 10
96+ # steps:
97+ # - uses: actions/checkout@v4
9898
99- - name : Install devbox
100- uses :
jetify-com/[email protected] 101- with :
102- enable-cache : true
99+ # - name: Install devbox
100+ # uses: jetify-com/[email protected] 101+ # with:
102+ # enable-cache: true
103103
104- - name : Mount golang cache
105- uses : actions/cache@v4
106- with :
107- path : |
108- ~/.cache/golangci-lint
109- ~/.cache/go-build
110- ~/go/pkg
111- key : go-${{ runner.os }}-${{ hashFiles('go.sum') }}
104+ # - name: Mount golang cache
105+ # uses: actions/cache@v4
106+ # with:
107+ # path: |
108+ # ~/.cache/golangci-lint
109+ # ~/.cache/go-build
110+ # ~/go/pkg
111+ # key: go-${{ runner.os }}-${{ hashFiles('go.sum') }}
112112
113- - run : devbox run lint
113+ # - run: devbox run lint
114114
115115 test :
116116 needs : build-devbox
117117 strategy :
118118 matrix :
119119 is-main :
120120 - ${{ github.ref == 'refs/heads/main' && 'is-main' || 'not-main' }}
121- os : [ubuntu-latest, macos-13]
121+ os : [macos-13]
122+ # os: [ubuntu-latest, macos-13]
122123 # This is an optimization that runs tests twice, with and without
123124 # the devbox.json tests. We can require the other tests to complete before
124125 # merging, while keeping the others as an additional non-required signal
@@ -189,73 +190,73 @@ jobs:
189190 if : matrix.run-project-tests == 'project-tests-only'
190191 run : devbox run test-projects-only
191192
192- auto-nix-install : # ensure Devbox installs nix and works properly after installation.
193- needs : build-devbox
194- strategy :
195- matrix :
196- os : [ubuntu-latest, macos-13]
197- use-detsys : [true, false]
198- runs-on : ${{ matrix.os }}
199- steps :
200- - uses : actions/checkout@v4
201- - name : Download devbox
202- uses : actions/download-artifact@v4
203- with :
204- name : devbox-${{ runner.os }}-${{ runner.arch }}
205- - name : Add devbox to path
206- run : |
207- chmod +x ./devbox
208- sudo mv ./devbox /usr/local/bin/
209- - name : Install nix and devbox packages
210- run : |
211- export NIX_INSTALLER_NO_CHANNEL_ADD=1
212- export DEVBOX_FEATURE_DETSYS_INSTALLER=${{ matrix.use-detsys }}
193+ # auto-nix-install: # ensure Devbox installs nix and works properly after installation.
194+ # needs: build-devbox
195+ # strategy:
196+ # matrix:
197+ # os: [ubuntu-latest, macos-13]
198+ # use-detsys: [true, false]
199+ # runs-on: ${{ matrix.os }}
200+ # steps:
201+ # - uses: actions/checkout@v4
202+ # - name: Download devbox
203+ # uses: actions/download-artifact@v4
204+ # with:
205+ # name: devbox-${{ runner.os }}-${{ runner.arch }}
206+ # - name: Add devbox to path
207+ # run: |
208+ # chmod +x ./devbox
209+ # sudo mv ./devbox /usr/local/bin/
210+ # - name: Install nix and devbox packages
211+ # run: |
212+ # export NIX_INSTALLER_NO_CHANNEL_ADD=1
213+ # export DEVBOX_FEATURE_DETSYS_INSTALLER=${{ matrix.use-detsys }}
213214
214- # Setup github authentication to ensure Github's rate limits are not hit.
215- # If this works, we can consider refactoring this into a reusable github action helper.
216- mkdir -p ~/.config/nix
217- echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
215+ # # Setup github authentication to ensure Github's rate limits are not hit.
216+ # # If this works, we can consider refactoring this into a reusable github action helper.
217+ # mkdir -p ~/.config/nix
218+ # echo "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}" > ~/.config/nix/nix.conf
218219
219- devbox run echo "Installing packages..."
220- - name : Test removing package
221- run : devbox rm go
220+ # devbox run echo "Installing packages..."
221+ # - name: Test removing package
222+ # run: devbox rm go
222223
223- # Run a sanity test to make sure Devbox can install and remove packages with
224- # the last few Nix releases.
225- test-nix-versions :
226- needs : build-devbox
227- strategy :
228- matrix :
229- os : [ubuntu-latest, macos-13]
230- nix-version : [2.15.1, 2.16.1, 2.17.0, 2.18.0, 2.19.2, 2.24.7]
231- runs-on : ${{ matrix.os }}
232- steps :
233- - uses : actions/checkout@v4
234- - name : Download devbox
235- uses : actions/download-artifact@v4
236- with :
237- name : devbox-${{ runner.os }}-${{ runner.arch }}
238- - name : Add devbox to path
239- run : |
240- chmod +x ./devbox
241- sudo mv ./devbox /usr/local/bin/
242- - name : Install Nix
243- uses : DeterminateSystems/nix-installer-action@v4
244- with :
245- logger : pretty
246- extra-conf : experimental-features = ca-derivations fetch-closure
247- nix-package-url : https://releases.nixos.org/nix/nix-${{ matrix.nix-version }}/nix-${{ matrix.nix-version }}-${{ runner.arch == 'X64' && 'x86_64' || 'aarch64' }}-${{ runner.os == 'macOS' && 'darwin' || 'linux' }}.tar.xz
248- - name : Run devbox install, devbox run, devbox rm
249- run : |
250- echo "::group::Nix version"
251- nix --version
252- echo "::endgroup::"
253- echo "::group::Contents of /etc/nix/nix.conf"
254- cat /etc/nix/nix.conf || true
255- echo "::endgroup::"
256- echo "::group::Resolved Nix config"
257- nix show-config --extra-experimental-features nix-command
258- echo "::endgroup::"
259- devbox install
260- devbox run -- echo "Hello from devbox!"
261- devbox rm go
224+ # # Run a sanity test to make sure Devbox can install and remove packages with
225+ # # the last few Nix releases.
226+ # test-nix-versions:
227+ # needs: build-devbox
228+ # strategy:
229+ # matrix:
230+ # os: [ubuntu-latest, macos-13]
231+ # nix-version: [2.15.1, 2.16.1, 2.17.0, 2.18.0, 2.19.2, 2.24.7]
232+ # runs-on: ${{ matrix.os }}
233+ # steps:
234+ # - uses: actions/checkout@v4
235+ # - name: Download devbox
236+ # uses: actions/download-artifact@v4
237+ # with:
238+ # name: devbox-${{ runner.os }}-${{ runner.arch }}
239+ # - name: Add devbox to path
240+ # run: |
241+ # chmod +x ./devbox
242+ # sudo mv ./devbox /usr/local/bin/
243+ # - name: Install Nix
244+ # uses: DeterminateSystems/nix-installer-action@v4
245+ # with:
246+ # logger: pretty
247+ # extra-conf: experimental-features = ca-derivations fetch-closure
248+ # nix-package-url: https://releases.nixos.org/nix/nix-${{ matrix.nix-version }}/nix-${{ matrix.nix-version }}-${{ runner.arch == 'X64' && 'x86_64' || 'aarch64' }}-${{ runner.os == 'macOS' && 'darwin' || 'linux' }}.tar.xz
249+ # - name: Run devbox install, devbox run, devbox rm
250+ # run: |
251+ # echo "::group::Nix version"
252+ # nix --version
253+ # echo "::endgroup::"
254+ # echo "::group::Contents of /etc/nix/nix.conf"
255+ # cat /etc/nix/nix.conf || true
256+ # echo "::endgroup::"
257+ # echo "::group::Resolved Nix config"
258+ # nix show-config --extra-experimental-features nix-command
259+ # echo "::endgroup::"
260+ # devbox install
261+ # devbox run -- echo "Hello from devbox!"
262+ # devbox rm go
0 commit comments