✨️ gcc(C言語)・g++(C++) #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: nix-buildcheck | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
# github actionsのファイルサイズ制限に引っかかって落ちるので一時的に無効化 | |
# - run: nix build ./exec-container/flake.nix | |
- run: nix flake check ./exec-container/flake.nix | |
- run: cd ./exec-container && nix fmt && git diff --exit-code || (echo "Please run 'nix fmt' and commit the changes" && exit 1) |